mIRC Home    About    Download    Register    News    Help

Print Thread
#127526 14/08/05 12:10 PM
Joined: Jul 2005
Posts: 13
C
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

#127527 14/08/05 12:14 PM
Joined: Feb 2004
Posts: 2,019
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.
#127528 14/08/05 02:20 PM
Joined: Aug 2005
Posts: 128
S
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

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


Gone.

Link Copied to Clipboard