mIRC Home    About    Download    Register    News    Help

Print Thread
#133521 21/10/05 07:38 PM
Joined: Apr 2005
Posts: 72
B
Babel fish
OP Offline
Babel fish
B
Joined: Apr 2005
Posts: 72
hello
Code:
on *:mode:#chan: {
???????
/notify off
}

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

mfg bodo

#133522 21/10/05 10:37 PM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Code:
 on *:mode:#:{ if (-i isin $1-) .notify off } 

#133523 22/10/05 08:21 PM
Joined: Apr 2005
Posts: 72
B
Babel fish
OP Offline
Babel fish
B
Joined: Apr 2005
Posts: 72
thx

#133524 22/10/05 09:32 PM
Joined: Aug 2005
Posts: 128
S
Vogon poet
Offline
Vogon poet
S
Joined: Aug 2005
Posts: 128
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)


Link Copied to Clipboard