this actually completes a nickname without having to push tab to resolve the nickname. All you need do is specify the first three letters of a nickname together with a : which is the trigger, space and then your text. EG: ast: hello (pressing return would then display "Astro: hello"). I have made this a basic on INPUT event including normal messaging of the channel when there is no nick to complete.
syk1k uploaded a snippet using on :ban:#:{ which is fine, but as he has told me doesn't work properly if the mode string is -o+b. So, I made my own version using RAWMODE. The way this one works is it checks to see first if the mode string ($1) contains +b and then checks each token of the modemask ($2) to see if your address or nick is present. Compared to on ban, this code may take about a 100th of..