Eggheads: What's wrong with this code?

Dariusz Kulinski takeda at eggheads.w.pl
Sun Oct 10 00:07:14 CST 2004


Hello Anser,

Saturday, October 9, 2004, 10:56:46 PM, you wrote:

>   bind pub o|o -vb pre:viriiban
> proc pre:viriiban {n u h c t} {
> set preban [getchanhost $t $c]
> newchanban $c *!$preban@$h "You're infected with a virus, please join #vh for virus removal."
> putkick $c $t "You're infected with a virus, please join #vh for virus removal."
> }

> It's supposed to ban a user with the kick message: You're
> infected with a virus, please join #vh for virus removal., when an
> op triggers the command -vb nick on a channel.
> THANKS! 

Ha ha, my script banned the caller, I just noticed that now, LOL :)

Thanks for noticing it, well it's a matter of changing newchanban
argument.

-- 
Best regards,
 Dariusz                            mailto:takeda at eggheads.w.pl
CCNA, SCSA, SCNA, LPIC, MCP certified
http://www.takeda.tk




More information about the Eggheads mailing list