mIRC Home    About    Download    Register    News    Help

Print Thread
on text question help please #137956 22/12/05 04:45 PM
Joined: Dec 2005
Posts: 6
C
crazy0ne Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
C
Joined: Dec 2005
Posts: 6
script:


menu channel {
God Settings
.Full Enable:/enable #god
.Full Disable:/disable #god
}
#god off
on *:text:*name*:#:{
kb $chan $nick Don't Say God Names!
}
#god end

ok well, i need help make it do it only kb's non ops that say the god name.. please help, thanks.

Re: on text question help please #137957 22/12/05 05:44 PM
Joined: Feb 2004
Posts: 2,019
FiberOPtics Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
on @*:text:*names*:#channels:{
if ($nick !isop #) ban -k # $nick 2 Don't Say God Names!
}

Btw, like you can see I've changed # to #channels (you should put your own channel in there), because this woudl trigger on any channel you are in. If you want it to trigger on multiple channels you can put them there, sperated by commas like: #chan1,#chan2,#chan3 etc.

Also added @ so that it only triggers if you have operator status in the channel.

I seriously advise you to make the matching criteria (*names*) stricter, as that would be plain cruel to ban someone for saying the word "names" but I suppose you will put your own "swear" words there later.


Gone.
Re: on text question help please #137958 22/12/05 11:07 PM
Joined: Dec 2005
Posts: 54
B
Bundy Offline
Babel fish
Offline
Babel fish
B
Joined: Dec 2005
Posts: 54
Now why can't they say God? What if I'm a Sex God? Well, let me not state the obvious ne :P