on *:TEXT:Gag*:#woot: { if ($nick == Blademan-2 && $nick isop #woot && $2 ison #woot) { mode #woot -v $2 } { mode #woot +b ~q:$2 | msg #woot No talking for you $2 } }
Can someone help me fix it so when for example i say Gag Unknown3249342 it'll ban that person's ip without kicking them or whatever
Thanks
Scorchdragon
Try something like
on @*:TEXT:Gag*:#woot: if ($nick == Blademan-2) { mode #woot -v $2 | mode #woot +b $address( $+ $2 $+ ,2) | /msg $woot No talking for you $2 $+ . }
Just ensure this is loaded in an instant of mIRC. Not the same instance that you're using to chat with.
Ty very much guys, i got it to work
Sorry about double post guys..
But
I want it so it GAGS them for example
if i said gag unknown2839482
it would do this mode
/mode #woot +b~q:(ipadresshere)
Thanks again
That's what the code does. It's not always possible to obtain an ip of an user. What if they have a hostmask that is unresolvable? In that case, the command isn't going to work. Not to mention trying to dns the hostmask to an IP can often take several seconds, by that time they may have already left the channel.