| View previous topic :: View next topic |
| Author |
Message |
DaRkOoO Halfop
Joined: 27 Sep 2008 Posts: 67
|
Posted: Wed Mar 18, 2009 4:45 pm Post subject: Clear bans |
|
|
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
Regards,
Darko. |
|
| Back to top |
|
 |
DaRkOoO Halfop
Joined: 27 Sep 2008 Posts: 67
|
Posted: Mon Mar 30, 2009 5:15 pm Post subject: |
|
|
| sooo,is someone going to help me?I think this should be simple ;/ |
|
| Back to top |
|
 |
Way2Death Voice
Joined: 31 Mar 2009 Posts: 15
|
Posted: Tue Mar 31, 2009 3:33 pm Post subject: |
|
|
| 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 |
|
 |
DaRkOoO Halfop
Joined: 27 Sep 2008 Posts: 67
|
Posted: Wed Apr 01, 2009 7:21 am Post subject: |
|
|
/cs unban nick/host or
/msg chanserv unban nikc/host
But I wanted to my bot delete bans by his own,not using chanserv.. |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Wed Apr 01, 2009 2:06 pm Post subject: |
|
|
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 |
|
 |
DaRkOoO Halfop
Joined: 27 Sep 2008 Posts: 67
|
Posted: Wed Apr 01, 2009 3:07 pm Post subject: |
|
|
Works fine,thanks  |
|
| Back to top |
|
 |
|