mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jun 2015
Posts: 2
B
Bauws Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
B
Joined: Jun 2015
Posts: 2
I'm looking to setup a command that would ban a user if their username contained a certain phrase (to ban spam accounts).

I have some knowledge with mIRC and twitch chat managing bots but I have no idea how I would go about this.

Any help is appreciated laugh
Thanks,
Bauws

Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
Do you know how to check if a sentence is within a string?

Your string in this case is $nick - as simple as that.


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Joined: Jun 2015
Posts: 2
B
Bauws Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
B
Joined: Jun 2015
Posts: 2
Kinda, just a little flustered atm with what i have going on so probably not thinking straight haha

so i would just basically check if $nick contains the phrase that i want filtered out and if so then ban them?

EDIT: would you also mind posting an example just so i know if I end up doing it right?

Last edited by Bauws; 22/06/15 09:17 PM.
Joined: May 2015
Posts: 249
Fjord artisan
Offline
Fjord artisan
Joined: May 2015
Posts: 249
most simple
Code:
if (*spammer*user* iswm $nick) { msg $chan .ban $nick }


Dont give a fish - teach to fish!

Link Copied to Clipboard