mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: May 2003
Posts: 78
M
MauS Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: May 2003
Posts: 78
The script:
Code:
setaway {
  set %aw1 $chr(124)
  if ( %aw1 isin $me ) then { aecho 7 %aw1 is in $me }
  else {
    aecho 7 %aw1 is not in $me
    set %awon ON
    set %awold $me
    nick $me $+ $chr(124) $+ AutoAway
  }
}


No /aecho is done!!

P.S. $chr(124) corresponds to "|" char


-= endless in a victory of a yourself =-
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
It doesn't say the helpfile to use "then", so don't.

Code:
setaway {
  set %aw1 $chr(124)
  if ( %aw1 isin $me ) { aecho 7 %aw1 is in $me }
  else {
    aecho 7 %aw1 is not in $me
    set %awon ON
    set %awold $me
    nick $me $+ $chr(124) $+ AutoAway
  }
}

Joined: May 2003
Posts: 78
M
MauS Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: May 2003
Posts: 78
Thanks! My poor mistake blush


-= endless in a victory of a yourself =-

Link Copied to Clipboard