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.

how to list all the bans in a channel with banlist

Old posts that have not been replied to for several years.
Locked
n
noobified

how to list all the bans in a channel with banlist

Post by noobified »

I want to make a simple ban listing script that lists all the ban in the channel instead of just the bans that are made by the bot.

###################
bind msg o !bans banchk

proc banchk {nick uhost hand text} {
puthelp "NOTICE $nick :Sending you banlist
foreach ban [banlist #testing] {
set banhost [lindex $ban 0]
puthelp "NOTICE $nick :$banhost"
}
}

####################

this simple script i have written however only shows me bans that are made by the bot, is there anyway i can edit it so it lists all the channel bans instead of just the bans made by the bot?
User avatar
strikelight
Owner
Posts: 708
Joined: Mon Oct 07, 2002 10:39 am
Contact:

Post by strikelight »

see 'chanbans' in tcl-commands.doc that comes with your eggdrop.
Locked