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 

Can somebody tell what is wrong in this script ?

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


Joined: 15 Jun 2008
Posts: 49
Location: Moldova

PostPosted: Mon Jul 28, 2008 4:52 pm    Post subject: Can somebody tell what is wrong in this script ? Reply with quote

Does anybody know how can I combine (link) this 2 scripts ( if the egg doesnt have @, it will voice through X Undernet

Code:
proc pub:unban { nick uhost hand chan text } {
 global botnick drchan reason opsc tnick
  if {[botisop $chan]} {
    if {[string length $text] > 0} {
      set tnick [lindex $text 0]
      if {[ischanban $tnick $chan]} {
      killchanban $chan $tnick
      putserv "MODE $chan -b $tnick"
      putquick "privmsg X :unban $chan $tnick"
      putserv "privmsg $opsc :$hand/$nick: I removed \002$tnick\002 from $chan" }
      if {[isban $chan $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 :I Don't Have op!" }
}
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
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