Sorry for basically grave digging this snippet, but it seems that when the user puts in too many characters it'll make the bot just say something with the relay prefix. A short example is like:
<Known> Hellooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
Then on the other end (the bot's relay):
<Bot> .:Known@Network:. Hellooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
<Bot> ooooooooooooooooooooooo
I'm not sure exactly how to fix this, so I thought I might as well ask the creator (or anyone who is able to fix this problem.
Otherwise it's an amazing snippet!
He is saying that they are if statements, so if someone did
!wale win
then it would show the win wale. $2 is basically what is said after the first statement, and so $3 is the 3rd statement, etc.
It's a easier way to make everything more organized and cleaner looking instead of having a bunch of on text statements.
a example of the script that doesn't work for every IRCd:
on *:TEXT:!regnick*:#: {
/msg $chan $nick To register your nickname you must first be on that nickname then type /register password Email. For example I could type /register fingerfood myemail@myprovider.com
halt
}
For people who use Anope it's /ns register, and it's different for every other service package out there (some are in common however).
You can condense this in many ways using ethier by making it have some regex, or even making a list of if statements that use one on text event.
That doesn't really make any sense, and you should make sure to put that in the dialog's information, or post information as not all servers run UnrealIRCd. You should also say what version of Anope & unrealIRCd you use at each IRCd and Services version have newer commands, and get rid of older ones that may be listed in this dialog. :P
You should include some timers to make it happen in a given set of time, instead of all happening at once, and creating spam (which in some channels can get you kicked).
on *:ACTION:*slaps $me around a bit with a large trout:#: {
msg $chan thats how it is eh?
.timer 1 2 describe $chan chases $nick with a gun!
.timer 1 3 describe $chan fires!
.timer 1 4 msg $chan $iif($r(1,2) == 1, damn i missed..., I hit! WOO!)
}
You could of just set a var and made it add a specfic pattern of different rands of chrs per the $2 number, as this would be not only very limited but also not completly random at all, since it will also be letter - letter - number ...etc which was showed in the previous version of this script, where you should have posted the updated one instead of creating a new post.