| View previous topic :: View next topic |
| Author |
Message |
Hero Halfop
Joined: 26 Jun 2012 Posts: 49 Location: root@localhost
|
Posted: Thu Aug 16, 2012 9:18 am Post subject: !Sapart Code Not Working |
|
|
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 |
|
 |
caesar Mint Rubber

Joined: 14 Oct 2001 Posts: 3741 Location: Mint Factory
|
Posted: Thu Aug 16, 2012 10:46 am Post subject: |
|
|
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 |
|
 |
Hero Halfop
Joined: 26 Jun 2012 Posts: 49 Location: root@localhost
|
Posted: Thu Aug 16, 2012 10:53 am Post subject: |
|
|
caesar i already posted but didnt got any reply thats why  |
|
| Back to top |
|
 |
Hero Halfop
Joined: 26 Jun 2012 Posts: 49 Location: root@localhost
|
Posted: Thu Aug 16, 2012 10:58 am Post subject: |
|
|
| Now Done Caesar Thanks For Help |
|
| Back to top |
|
 |
|