mIRC Homepage

prob with popup

Posted By: Clyde_The_Glide

prob with popup - 14/08/05 12:10 PM

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
Posted By: FiberOPtics

Re: prob with popup - 14/08/05 12:14 PM

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.
Posted By: stefys99

Re: prob with popup - 14/08/05 02:20 PM

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
Posted By: FiberOPtics

Re: prob with popup - 14/08/05 02:22 PM

Reply to the correct person please.
© 2020 mIRC Discussion Forums