This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Problems with a Banscript!

Old posts that have not been replied to for several years.
Locked
P
ProXy
Op
Posts: 126
Joined: Sun Aug 11, 2002 3:09 pm

Problems with a Banscript!

Post by ProXy »

Hi there,

I tried to write a little Script that bans, kicks and removes the ban. The problem is, that the script never bans and kicks. Here is the source:

Code: Select all

set host [getchanhost $arg $channel]
putserv "PRIVMSG $channel :Processing.."
newchanban $channel $arg!$host $botnick lamer
Does anyone please help me, how to ban, kick and de-ban?
M
Mapherick

Post by Mapherick »

If you want to process the removal immediately after the kick, rather put it like:

Code: Select all

putserv "MODE $channel +b $arg!$host"
putserv "KICK $channel $arg :Lamer"
putserv "MODE $channel -b $arg!$host" 
otherwise, use +enforcebans as a channel setting. this will make the bot kick everyone that matches his internal ban list.
Locked