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.

Move bans

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
T
Torrevado
Op
Posts: 101
Joined: Wed Aug 02, 2006 6:29 pm

Move bans

Post by Torrevado »

Hello,
Is there a way to move all bans from internal ban list to channel ban list?
This way any chan Op (not bot +o flag) could remove bans.
b
blake
Master
Posts: 201
Joined: Mon Feb 23, 2009 9:42 am
Contact:

Re: Move bans

Post by blake »

Torrevado wrote:Hello,
Is there a way to move all bans from internal ban list to channel ban list?
This way any chan Op (not bot +o flag) could remove bans.
You could get your bot to set mode chan +b username then kick their would be no need to use the bots internal ban list then this will allow for that will also allow ops to remove ban on channel ban list just use /botnick ban #channel nick reason

Code: Select all

bind msg o|o ban cmd:ban
proc cmd:ban {nick uhost hand arg} {
  set chan [lindex [split $arg] 0]
  set username [lindex [split $arg] 1]   
  set reason [lrange [split $arg] 2 end]
  putserv "MODE $chan +b $username"
  putserv "kick $chan $username $reason"   
}
Post Reply