Posted to tcl by Modo at Thu Nov 29 23:37:02 GMT 2007view raw
- bind pub n|o .ub pub:ub
-
- proc pub:ub {nick uhost hand chan text} {
- global botnick drchan drreason opsc
- if {[botisop $drchan]} {
- if {[string length $text] > 0} {
- set tnick [lindex $text 0]
- if {[ischanban $tnick $drchan]} {
- killchanban $drchan $tnick
- putquick "privmsg X :unban $drchan $tnick"
- putserv "privmsg $opsc :$hand/$nick: I removed \002$tnick\002 from $drchan" }
- if {[isban $tnick]}
- killban $tnick
- } else { puthelp "NOTICE $nick : I can't see that ban in the channel list" }
- } else { puthelp "NOTICE $nick :SYNTAX: .ub <nick!user@host> - unbans an address" }
- } else { puthelp "NOTICE $nick :Pfff n-am op!" }
- }
-
- don't found. i want remove ban (internal banlist from eggdrop) and via X too.