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.

Problem :\

Old posts that have not been replied to for several years.
Locked
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Problem :\

Post by metroid »

Hi, i can't get this to work properly :

Code: Select all

	set authlvl [chattr $vhandle]
	if {[string equal $authlvl "o"]} {
	set authlvl "Level 1"
	} elseif {[string equal $authlvl "m"]} {
	set authlvl "Level 20"
	} elseif {[string equal $authlvl "n"]} {
	set authlvl "Level 999"
	} else {
	set authlvl "none"}
What its supposed to do is tell me my "auth level" in the bot but the problem is that i need it to read if there is an n flag which means level 999 while m is only 20. but it won't read it and tell me i have none -_-

Could someone tell me what im doing wrong?

I've tried this aswell but no luck

Code: Select all

} elseif {[string equal $authlvl "*n*"]} {
The output would be :

Code: Select all

putquick "NOTICE $nick :Auth level      : $authlvl"
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

use matchattr
Have you ever read "The Manual"?
User avatar
]Kami[
Owner
Posts: 590
Joined: Thu Jul 24, 2003 2:59 pm
Location: Slovenia
Contact:

Post by ]Kami[ »

m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

user wrote:use matchattr
Ill give it a try :)
Locked