mIRC Home    About    Download    Register    News    Help

Print Thread
#246956 15/07/14 03:40 AM
Joined: Mar 2014
Posts: 65
E
Exuviax Offline OP
Babel fish
OP Offline
Babel fish
E
Joined: Mar 2014
Posts: 65
Is there a way that I can look for spaces in a message,
so if someone posts

Hey their whats up.

It will be ignored, but if they say

Heytheirwhatsup

It will time them out for spam, so I can get rid of messages like this

sgfidsfdi;lsfughdi;fughdi;fghdsfg


I do things with stuff that makes other things do stuff.
Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
If you just wanna get rid of stuff like "adsjiodwehjdjfw" then just look for this:
Code:
if (!$2) && ($len($1) >= 10) { do stuff }
Which will do stuff whenever someone writes a one word post that is over 9 letters long.


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Joined: Mar 2014
Posts: 65
E
Exuviax Offline OP
Babel fish
OP Offline
Babel fish
E
Joined: Mar 2014
Posts: 65
So how would I take this and make it remove words that are over 10 characters.


I do things with stuff that makes other things do stuff.
Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
Replace " do stuff " with what you want to do.
Code:
on *:text:*:#channel: {
if (!$2) && ($len($1) >= 10) { /kick # $nick Used a word that was 10 letters or more. }
}


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net

Link Copied to Clipboard