This is the new home of the egghelp.org community forum. this announcement post . Click the X in the top right-corner of this box to dismiss this message. 
Help for those learning Tcl or writing their own scripts.
			
		
				
			
				
								cache 							 
						Master 			
		Posts:  306 Joined:  Tue Jan 10, 2006 4:59 amLocation:  Mass 
		
						
					
													
							
						
									
						Post 
					 
								by cache  Mon Mar 26, 2007 4:46 pm 
			
			
			
			
			
			Trying to make this display a part msg on user who parts chan but I'm confused with error part.
Code: Select all 
bind part - * showgreet2
proc showgreet2 {nick uhost hand chan} {
global patch2
if {[file exist /$patch2/[lindex [split $uhost @] 1].txt]} {
set file5 [open /$patch2/[lindex [split $uhost @] 1].txt r+]
gets $file5 text
close $file5
putserv "PRIVMSG $chan :$text"
Error I get is...
[16:33] Tcl error [showgreet2]: wrong # args: should be "showgreet2 nick uhost hand chan"
					Last edited by 
cache  on Wed Mar 28, 2007 12:47 am, edited 1 time in total.
									
 
		 
				
		
		 
	 
				
		
				
			
				
								rosc2112 							 
						Revered One 			
		Posts:  1454 Joined:  Sun Feb 19, 2006 8:36 pmLocation:  Northeast Pennsylvania 
		
						
					
						 
													
							
						
									
						Post 
					 
								by rosc2112  Mon Mar 26, 2007 5:24 pm 
			
			
			
			
			
			(9)  PART (stackable)
			
			
									
						
										
						 
		 
				
		
		 
	 
				
		
				
			
				
								cache 							 
						Master 			
		Posts:  306 Joined:  Tue Jan 10, 2006 4:59 amLocation:  Mass 
		
						
					
						 
													
							
						
									
						Post 
					 
								by cache  Mon Mar 26, 2007 5:31 pm 
			
			
			
			
			
			Thanks rosc, apparently I always keep forgeting the last arg lol