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.

Little if problem

Old posts that have not been replied to for several years.
Locked
J
Juustro
Voice
Posts: 11
Joined: Wed Oct 02, 2002 4:15 pm

Little if problem

Post by Juustro »

TCL error [pub:qs]: syntax error in expression " !( $q_clan(v) && !( isvoice $nick $chan)) || !( $q_clan(o) "

Code: Select all

	if { !( $q_clan(v) && !( isvoice $nick $chan)) || !( $q_clan(o) && !(isop $nick $chan)) } {
		return 0
	}
who to make it work?

$q_clan(v) is 1 or 0
$q_clan(o) is 1 or 0
they are if check voices or ops

and if nick is not op or voice then return 0
l
laidas
Voice
Posts: 18
Joined: Thu Jul 25, 2002 10:07 am

Post by laidas »

You use not bad brackets:

Code: Select all

 if { !( $q_clan(v) && !( isvoice $nick $chan)) || !( $q_clan(o) && !(isop $nick $chan)) } { 
      return 0 
   }
must be:

Code: Select all

if { !$q_clan(v) && ![isvoice $nick $chan] || !$q_clan(o) && ![isop $nick $chan] } { return 0 } 
:wink:
Locked