See my previous post with the weed example, refword is a reference for the expression.
This is not related to your tést/test case but it's just great:
Let's say you want to ban some fruits name, but you want to kick-ban with a kick message that says 'you triggered my fruit badword, please don't use fruit name'
You would do "/addbadword fruit apple|banana|strawberry", and in my code, the kick message would show (ref word: fruit), you would also delete with "/hdel antibadword fruit".
My code is simple and was meant as a quick example you can learn/start from, the hash table is loaded in memory, it is not saved to disk, /hload is not relevant there.
For /ban to work you need to be an operator on the channel, if you want to ban with a different command you can always change /ban in the code
Last edited by Wims; 21/01/18 09:39 PM.