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 }
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.