mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jul 2007
Posts: 21
Ameglian cow
OP Offline
Ameglian cow
Joined: Jul 2007
Posts: 21
Hi all, I'm testing by some weeks my script on mIRC 7.x (today I had upgraded to 7.27) and I've found a little problem with an operation.
I have made, some times ago, a script that saves in an .ini all parts/quits to check on join if the user have changed nick by comparing the actual address mask with the saved one.
So, I'm using an unique file (maybe I'll split by servers) to do this operation (and now is about 400kb), and on mIRC 6.x works better, but on mIRC 7 when an user join mIRC hangs for 2-3 seconds and after works good.
With Process Monitor by Microsoft I've found that when this problem appear on the operation list theres a bounch of "READFILE".
By the way I have an SSD.

Here the script:

Code:
on ^*:JOIN:#:{
  if ($conf(Varie,NickSpy) == Si) {
    if ($nick != $me) {
      var %nick2 $readini($npreclist,$address($nick,2),Nick)
      var %mask2 $readini($npreclist,$address($nick,2),Mask)
      if ($address($nick,2) == %mask2) {
        if ($nick != %nick2) { echo $pcol(Other,NickSpy) $chan $rpcode($rcode($skin(Other,NickSpy)),$lang(Common,22),$rpcode($lang(Events,20),$nick,%nick2),$iif($readini($npreclist,%mask2,Time),$v1,--/--)) }
      }
    }
  }
}

on ^*:PART:#:{
  if ($conf(Varie,NickSpy) == Si) {
    if ($address($nick,2)) {
      .writeini -n $npreclist $address($nick,2) Nick $nick
      .writeini -n $npreclist $address($nick,2) Mask $address($nick,2)
      .writeini -n $npreclist $address($nick,2) Time $time(dd/mm/yyyy HH:nn:ss)
    }
  }
}
on ^*:QUIT:{
  if ($conf(Varie,NickSpy) == Si) {
    if ($address($nick,2)) {
      .writeini -n $npreclist $address($nick,2) Nick $nick
      .writeini -n $npreclist $address($nick,2) Mask $address($nick,2)
      .writeini -n $npreclist $address($nick,2) Time $time(dd/mm/yyyy HH:nn:ss)
    }
  }
}
alias npreclist { return Resource\Varie\NPrec.lst }



Could be a mIRC 7 problem?
Thanks.

Last edited by Jacksoft; 04/11/12 09:46 AM.
Joined: Dec 2002
Posts: 5,430
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,430
The above scripts depends on a number of events, commands and identifiers, such as $conf(), $pcol(), $address(), $readini(), /writeini, and so on, any of which could be the cause of the issue you are seeing. Can you provide a short, simple script that narrows down the issue and reproduces it for you? I will then enter it into my aliases section and run it in both v6.35 and v7.27 to see if I can reproduce it myself. Thanks.


Link Copied to Clipboard