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.

!Sapart Code Not Working

Help for those learning Tcl or writing their own scripts.
Post Reply
H
Hero
Halfop
Posts: 49
Joined: Tue Jun 26, 2012 6:27 pm
Location: root@localhost
Contact:

!Sapart Code Not Working

Post by Hero »

Hello This Code Is Not Working And It There Is No Bug In This Code But I DOnt Know Why It Wont Works Please Help

Code: Select all

proc oper:sapart {nick uhost hand chan text} { 
   if {![string equal -nocase $chan "#Help"]} return 
   if {![isop $nick $chan]} return 
   if {[scan $text {%s%s%s} user channel reason] != 3} { 
      puthelp "NOTICE $nick :usage: !sapart <nick> <channel> <messsage>" 
      return 
   } 
   if {[isop $user $chan]} { 
      puthelp "NOTICE $nick :$user Is Also Helper, You Cannot Use This Command On Them" 
      return 
   } 
   putserv "SAPART $user $channel $reason" 
}
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Why don't you reply to your old topic?

Do you have the

Code: Select all

bind pub * !sapart oper:sapart 
line in the file that's loaded to the bot?

If yes, are you trying this on #help channel (case insensitive)? Are you a channel operator (meaning having @) on that channel? What happens when you type just "!sapart" in there?
Once the game is over, the king and the pawn go back in the same box.
H
Hero
Halfop
Posts: 49
Joined: Tue Jun 26, 2012 6:27 pm
Location: root@localhost
Contact:

Post by Hero »

caesar i already posted but didnt got any reply thats why :)
H
Hero
Halfop
Posts: 49
Joined: Tue Jun 26, 2012 6:27 pm
Location: root@localhost
Contact:

Post by Hero »

Now Done Caesar Thanks For Help
Post Reply