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.

Insulter tcl

Old posts that have not been replied to for several years.
Locked
e
eklissi

Insulter tcl

Post by eklissi »

### PROCS
proc insulta {nick host hand chan arg} {
global insulti botnick owner
if {[isop $nick $chan]==0} {
putserv "NOTICE $nick :Questo comando è accessibile solo agli op del canale!"
putserv "PRIVMSG $chan :$nick, you're lame!"
} else

this is aviable only for op ...i want that it is aviable for op and voice
sorry...but my english not very good
helpme thanks
User avatar
GodOfSuicide
Master
Posts: 463
Joined: Mon Jun 17, 2002 8:00 pm
Location: Austria

Re: Insulter tcl

Post by GodOfSuicide »

eklissi wrote:### PROCS
proc insulta {nick host hand chan arg} {
global insulti botnick owner
if {[isop $nick $chan]==0} {
putserv "NOTICE $nick :Questo comando è accessibile solo agli op del canale!"
putserv "PRIVMSG $chan :$nick, you're lame!"
} else

this is aviable only for op ...i want that it is aviable for op and voice
sorry...but my english not very good
helpme thanks
change
if {[isop $nick $chan]==0} {
to
if {(![isop $nick $chan]) || if {![isvoice $nick $chan]} {

btw, double posting is forbidden
e
eklissi

Post by eklissi »

sorry
Tnx a lot :D
e
eklissi

Post by eklissi »

while executing
"proc insulta {nick host hand chan arg}"
User avatar
arcane
Master
Posts: 280
Joined: Thu Jan 30, 2003 9:18 am
Location: Germany
Contact:

Post by arcane »

it has to be

Code: Select all

if {![isop $nick $chan] && ![isvoice $nick $chan]} {
1 logical error and 1 syntax error (sorry, GodOfSuicide)
aVote page back online!
Check out the most popular voting script for eggdrop bots.

Join the metal tavern!
User avatar
GodOfSuicide
Master
Posts: 463
Joined: Mon Jun 17, 2002 8:00 pm
Location: Austria

Post by GodOfSuicide »

arcane wrote:1 logical error and 1 syntax error (sorry, GodOfSuicide)
well, dont drink & code :P
User avatar
arcane
Master
Posts: 280
Joined: Thu Jan 30, 2003 9:18 am
Location: Germany
Contact:

Post by arcane »

GodOfSuicide wrote:well, dont drink & code :P
:mrgreen:
aVote page back online!
Check out the most popular voting script for eggdrop bots.

Join the metal tavern!
Locked