mIRC Home    About    Download    Register    News    Help

Print Thread
#100814 16/10/04 10:29 PM
Joined: Dec 2002
Posts: 7
P
Postino Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
P
Joined: Dec 2002
Posts: 7
Hello,
I'm trying to write an event that will get processed on specific words, and seems that I'm unable to do that.
It seemed very simple at first... but am stumped.
NOTE: --instead of the smile face, there should be a colon and a parenthesis, but the board kept changing it to a smiley...And I couldn't find a way to turn off the UBB Code thing.
I want mIRC to kick/ban anyone who says the following text
hi smile. (all-)

I tried the usual:
on *:TEXT:*hi smile. (all-)*:*:{ ban $chan $nick 2 | kick $chan $nick Flood bot }
But it didn't work, I suspect it was because of the parentheses and colon.
so I came up with:
on *:TEXT:*hi $chr(32) $chr(58) $+ $chr(41) $+ $chr(46) $chr(32) $chr(40) $+ all $+ $chr(45) $+ $chr(41)*:*:{ ban $chan $nick 2 | kick $chan $nick Flood bot }
But it still didn't work.
I would very much appreciate it if you all helped me wink

Thank you in advance smile

PS: Sorry about the smilies... I just could not turn off the auto smiley feature of the board for this post...

#100815 16/10/04 10:44 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
on *:text:*:#:{
var %searchstr = hi smile. (all-)
if (%searchstr isin $1-) { ban -k $chan $nick 2 Flood Bot. }
}


New username: hixxy
#100816 17/10/04 03:07 AM
Joined: Dec 2002
Posts: 7
P
Postino Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
P
Joined: Dec 2002
Posts: 7
Tidy_trax...
Thank you!!!
That made it work

Have a wonderful day,
Postino

#100817 17/10/04 04:14 PM
Joined: Apr 2003
Posts: 414
Fjord artisan
Offline
Fjord artisan
Joined: Apr 2003
Posts: 414
Code:
on *:TEXT:*hi $chr(32) $chr(58) $+ $chr(41) $+ $chr(46) $chr(32) $chr(40) $+ all $+ $chr(45) $+ $chr(41)*:*:{ ban $chan $nick 2 | kick $chan $nick Flood bot }

Also must work.. You just missing $(...)
Code:
on *:TEXT:[color:red]$([/color]*hi $chr(32) $chr(58) $+ $chr(41) $+ $chr(46) $chr(32) $chr(40) $+ all $+ $chr(45) $+ $chr(41) $+ *[color:red])[/color]:*:{ ban $chan $nick 2 | kick $chan $nick Flood bot }


mIRC Chm Help 6.16.0.3 Full Anchored!
#100818 21/10/04 12:29 AM
Joined: Dec 2002
Posts: 7
P
Postino Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
P
Joined: Dec 2002
Posts: 7
Thank you Adrenalin.


Link Copied to Clipboard