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 

!Sapart Code Not Working

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
Hero
Halfop


Joined: 26 Jun 2012
Posts: 49
Location: root@localhost

PostPosted: Thu Aug 16, 2012 9:18 am    Post subject: !Sapart Code Not Working Reply with quote

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:
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"
}
Back to top
View user's profile Send private message Visit poster's website
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3741
Location: Mint Factory

PostPosted: Thu Aug 16, 2012 10:46 am    Post subject: Reply with quote

Why don't you reply to your old topic?

Do you have the
Code:

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.
Back to top
View user's profile Send private message
Hero
Halfop


Joined: 26 Jun 2012
Posts: 49
Location: root@localhost

PostPosted: Thu Aug 16, 2012 10:53 am    Post subject: Reply with quote

caesar i already posted but didnt got any reply thats why Smile
Back to top
View user's profile Send private message Visit poster's website
Hero
Halfop


Joined: 26 Jun 2012
Posts: 49
Location: root@localhost

PostPosted: Thu Aug 16, 2012 10:58 am    Post subject: Reply with quote

Now Done Caesar Thanks For Help
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help 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