This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Can somebody tell what is wrong in this script ?

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
D
Danik
Halfop
Posts: 49
Joined: Sun Jun 15, 2008 12:59 pm
Location: Moldova
Contact:

Can somebody tell what is wrong in this script ?

Post by Danik »

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

Code: Select all

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!" } 
} 
Post Reply