mIRC Home    About    Download    Register    News    Help

Print Thread
#111863 19/02/05 05:32 PM
Joined: Feb 2005
Posts: 12
E
Pikka bird
OP Offline
Pikka bird
E
Joined: Feb 2005
Posts: 12
Code:
 on @*:mode:#test: if $regex($1,/\+[^-]*m/) { mode # -m } 


How could i make it so only i could mute the channel and not others. Because when i try to mute it, it comes right off


°Þhëèr †hé ßünNêH°
#111864 19/02/05 05:34 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Code:
on @[color:red]![/color]*:mode:#test: if $regex($1,/\+[^-]*m/) { mode # -m } 


New username: hixxy
#111865 19/02/05 05:36 PM
Joined: Feb 2005
Posts: 12
E
Pikka bird
OP Offline
Pikka bird
E
Joined: Feb 2005
Posts: 12
Thank You Thank You.


°Þhëèr †hé ßünNêH°
#111866 19/02/05 06:01 PM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
If an op were to do something like this:
/mode #chan +m-mi
your script would be fooled into triggering.
I'd use a simpler and safer method of detecting mode changes, $chan().mode:
Code:
on @!*:mode:#test: if *m* *m* iswmcs $1 $gettok($chan(#).mode,1,32) { mode # -m }


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com

Link Copied to Clipboard