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.

check OP Nedd Help!!!

Old posts that have not been replied to for several years.
Locked
b
banditoz

check OP Nedd Help!!!

Post by banditoz »

Hi, I need help about my code.
i would check if an nick that type !sop[/url], is op or not, and return any message on channel.

Code: Select all

# check OP
bind pub - !sop op_check
proc op_check {nick uhost handle chan text} {
if {$chan != "#mychan"} { return 0 }
if {[isop $nick $chan]} {
putserv "PRIVMSG $chan :$nick You are op!"
return 0
} else {
putserv "PRIVMSG $chan :$nick Tou aren't op!"
return 0
}
}
Why it not run?
Thanks in advance

Bye
User avatar
Rusher2K
Halfop
Posts: 88
Joined: Fri Apr 18, 2003 10:45 am
Location: Germany
Contact:

Post by Rusher2K »

This Script work fine.
Have you loaded it ?
Have you forgotten to set #mychan to your chan ?

Mfg Rusher2K
(16:57:29) (@Rusher2K) !sop
(16:57:29) (Chaos-FM) Rusher2K You are op!
(16:57:35) —› mode: (Rusher2K) sets (-o Rusher2K)
(16:57:36) (Rusher2K) !sop
(16:57:37) (Chaos-FM) Rusher2K Tou aren't op!
Last edited by Rusher2K on Sun Nov 09, 2003 12:00 pm, edited 1 time in total.
b
banditoz

Post by banditoz »

Sorry.
I've loaded the script on EGG but not run correctly.
* SaTM`B0t sets mode: +o banditOZ
<banditOZ> !sop
<Fusion-Bot> banditOZ You aren't op!
* banditOZ sets mode: -o banditOZ
<banditOZ> !sop
<Fusion-Bot> banditOZ You aren't op!
It return ever You aren't op!

Why?????
Please help me.

Bye
Locked