mIRC Home    About    Download    Register    News    Help

Print Thread
prob with popup #127526 14/08/05 12:10 PM
Joined: Jul 2005
Posts: 13
C
Clyde_The_Glide Offline OP
Pikka bird
OP Offline
Pikka bird
C
Joined: Jul 2005
Posts: 13
Code:
  
.Kick:$iif(*Q* iswmcs $chan($active).mode,mode # -Q | kick # $$1 $read(reasons.txt),kick # $$1 $read(reasons.txt)) } } 

error is : * Invalid format: $iif
thanking you in advance

Re: prob with popup #127527 14/08/05 12:14 PM
Joined: Feb 2004
Posts: 2,019
FiberOPtics Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
Thats not what $iif is for.

$iif returns a value, it's not meant to pipe up commands in it, for that you use /if.

Btw use $read(reasons.txt,tn), it will cause anything read-in to be not evaluated.


Gone.
Re: prob with popup #127528 14/08/05 02:20 PM
Joined: Aug 2005
Posts: 128
S
stefys99 Offline
Vogon poet
Offline
Vogon poet
S
Joined: Aug 2005
Posts: 128
I also suggest using $gettok($chan($active).mode,1,32) instead of $chan($active).mode.

For example:
$chan($active).mode = +ntk Query
A channel that has a key that contains Q, and the kick command will try to remove the Q mode

Re: prob with popup #127529 14/08/05 02:22 PM
Joined: Feb 2004
Posts: 2,019
FiberOPtics Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
Reply to the correct person please.


Gone.