mIRC Homepage
Posted By: bodo0815 on:mode set /notify off - 21/10/05 07:38 PM
hello
Code:
on *:mode:#chan: {
???????
/notify off
}

how can i set /notify off if in a channel set mode -i

mfg bodo
Posted By: RusselB Re: on:mode set /notify off - 21/10/05 10:37 PM
Code:
 on *:mode:#:{ if (-i isin $1-) .notify off } 
Posted By: bodo0815 Re: on:mode set /notify off - 22/10/05 08:21 PM
thx
Posted By: stefys99 Re: on:mode set /notify off - 22/10/05 09:32 PM
That won't work if a person sets -mi
You should use:
Code:
on *:mode:#:{
var %i = 1
while ($mid($1,%i,1) != $null) {
var %t = $ifmatch
if (%t == +) var %sign = 0
elseif (%t == -) var %sign = 1
elseif (%t == i) var %inv = %sign
inc %i
}
if (%inv) notify off 
}

(untested)
© mIRC Discussion Forums