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.

Remove Global and Chan Bans ?

Old posts that have not been replied to for several years.
Locked
B
Blade2
Voice
Posts: 10
Joined: Sat Feb 07, 2004 11:11 pm

Remove Global and Chan Bans ?

Post by Blade2 »

Hello, I have try script to write which global and channel bans delete, but somehow have I it do not get. Can someone help me? I found nothing useful also here in the forum

Code: Select all

bind pub o|m .unbanall proc_unbanall

proc_unbanall { nick uhost hand chan arg } {
foreach $chan [banlist $chan] { 
  killchanban $chan $banmask
  killban $chan $banmask }

But Didn't work :(
P.s
My first Scripting Lines
User avatar
CoMMy
Halfop
Posts: 99
Joined: Thu Jul 24, 2003 1:03 am
Location: Cyprus

Post by CoMMy »

Tottaly wrong. This is the way it should be.

Code: Select all

bind pub o|m .unbanall proc_unbanall 

proc_unbanall {nick host handle chan arg} { 
foreach channel [channels] {
foreach ban [banlist $channel] { 
killchanban $channel $ban }}
foreach bans [banlist] {
killban $bans }
ENJOY![/code]
(c) CoMMy (c)
Resistance is Futile!!
We Are The Borg!!
B
Blade2
Voice
Posts: 10
Joined: Sat Feb 07, 2004 11:11 pm

Post by Blade2 »

big thank :)
Locked