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. 
	 
Old posts that have not been replied to for several years.
			
		
				
			- 
				
								Devil							
 
						- Voice
 			
		- Posts: 6
 		- Joined: Tue Oct 05, 2004 10:55 am
 		
		
						
						
		
		
						
					
													
							
						
									
						Post
					
								by Devil » 
			
			
			
			
			
			Hey guys, I'm kind of stuck here on this code. I just want it to see is @ isin the $text var. But I'm kind of noob to tcl and need some help 
Code: Select all
bind msg m| !compra compra
proc compra {nick uhost hand text} {
set compras "@"
if {![string match *$compras* $text]} {
putserv "PRIVMSG memoserv :send $nick $uhost $text"
putserv "PRIVMSG $nick :Sua solicitação foi encaminhada com sucesso. Aguarde resposta da TuxHost."
} else {
putserv "PRIVMSG $nick :Por favor informe um e-mail válido para que a TuxHost possa entrar em contato."
}
}
thank you, I hope I didn't ask too much. 

 
			
			
									
						
										
						 
		 
				
		
		 
	 
				
		
				
			- 
				
								user							
 
						-  
 			
		- Posts: 1452
 		- Joined: Tue Mar 18, 2003 9:58 pm
 		
		
											- Location: Norway
 
							
						
		
		
						
					
													
							
						
									
						Post
					
								by user » 
			
			
			
			
			
			What's the problem? If it does the opposite of what you expect, you're a noob at logic, not tcl 

 ("!" is a logical NOT)
 
			
			
									
						
							Have you ever read "The Manual"?