Advertisement Kick and input statement lol brb complete

By sukhbira on Mar 03, 2013

Advertisement Kick and input statement lol brb complete

Advertisement Kick
To add this to your script, simply copy/paste the following line into your remotes (Alt+R).

on @*:TEXT:*:#: if ((www isin $1-) || (http: isin $1-) || ($chr(35) isin $1-)) { ban -k $chan $nick 2 Do NOT advertise other channels or websites here. } 
Input Statements LOL/BRB/WB
on *:INPUT:*: if (/* !iswm $1) && (!$ctrlenter) { say $replace($1-,brb,Be Right Back,lol,Laughing Out Loud,brb,Be right back,bbiab,Be Back In A Bit,wb,Welcome back) | halt } 

Comments

Sign in to comment.
fahadmehar   -  Dec 05, 2016

Not Working

 Respond  
Valware   -  Mar 03, 2013

I think it looks good.
However, I think using the 'www isin $1-' is a bit verbose. You could 'https:' instead of 'www' in conjunction with 'http:' as not all urls start with 'http:'.
I also think it'd be a good idea to use $strip() as sometimes you get people who advertise things who stick control codes in parts of the string, $strip() would fix that.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.