mIRC Home    About    Download    Register    News    Help

Print Thread
#246956 15/07/14 03:40 AM
E
Exuviax
Exuviax
E
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

#246957 15/07/14 05:57 AM
Joined: Dec 2013
Posts: 771
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 771
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.

E
Exuviax
Exuviax
E
So how would I take this and make it remove words that are over 10 characters.

#246969 16/07/14 04:25 AM
Joined: Dec 2013
Posts: 771
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 771
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. }
}


Link Copied to Clipboard