egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Move bans

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
Torrevado
Op


Joined: 02 Aug 2006
Posts: 101

PostPosted: Tue Dec 15, 2009 5:15 pm    Post subject: Move bans Reply with quote

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.
Back to top
View user's profile Send private message
blake
Master


Joined: 23 Feb 2009
Posts: 201

PostPosted: Wed Dec 16, 2009 11:30 am    Post subject: Re: Move bans Reply with quote

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:
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"   
}

_________________
Blake
UKEasyHosting UKStormWatch
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber