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 

Clear bans

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


Joined: 27 Sep 2008
Posts: 67

PostPosted: Wed Mar 18, 2009 4:45 pm    Post subject: Clear bans Reply with quote

Hi,

I need script which will make my bot to remove all active bans on channel when I say !cbans,and other script which will remove just last ban on channell when I say !rlastban Wink


Regards,
Darko.
Back to top
View user's profile Send private message
DaRkOoO
Halfop


Joined: 27 Sep 2008
Posts: 67

PostPosted: Mon Mar 30, 2009 5:15 pm    Post subject: Reply with quote

sooo,is someone going to help me?I think this should be simple ;/
Back to top
View user's profile Send private message
Way2Death
Voice


Joined: 31 Mar 2009
Posts: 15

PostPosted: Tue Mar 31, 2009 3:33 pm    Post subject: Reply with quote

This depends on which network you're on. If you can provide me the code to unban some one at your network i can provide you the code
Back to top
View user's profile Send private message
DaRkOoO
Halfop


Joined: 27 Sep 2008
Posts: 67

PostPosted: Wed Apr 01, 2009 7:21 am    Post subject: Reply with quote

/cs unban nick/host or
/msg chanserv unban nikc/host
But I wanted to my bot delete bans by his own,not using chanserv..Smile
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Wed Apr 01, 2009 2:06 pm    Post subject: Reply with quote

Something like this should do the trick:
Code:
bind pub n|n "!cbans" pubCBans
bind pub n|n "!rlastban" pubRLastBan

proc pubCBans {nick host handle channel text} {
 foreach ban [chanbans $channel] {
  pushmode $channel -b [lindex $ban 0]
 }
}

proc pubRLastBan {nick host handle channel text} {
 set bans [lsort -index 2 -integer -decreasing [chanbans $channel]
 pushmode $channel -b [lindex $bans 0 0]
}

_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
DaRkOoO
Halfop


Joined: 27 Sep 2008
Posts: 67

PostPosted: Wed Apr 01, 2009 3:07 pm    Post subject: Reply with quote

Works fine,thanks Very Happy
Back to top
View user's profile Send private message
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