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. 
Old posts that have not been replied to for several years.
			
		
				
			
				
								conan_i 							 
						Voice 			
		Posts:  18 Joined:  Sun Jun 12, 2005 5:33 am 
		
						
					
													
							
						
									
						Post 
					 
								by conan_i  Sun Aug 07, 2005 2:51 am 
			
			
			
			
			
			how will i add a kick message to read from kick.txt  on eg kick nick  if no reason given from the command to read it from kick.txt 
			
			
									
						
										
						 
		 
				
		
		 
	 
				
		
				
			
				
								demond 							 
						Revered One 			
		Posts:  3073 Joined:  Sat Jun 12, 2004 9:58 amLocation:  San Francisco, CA
				Contact: 
				
			 
				
		 
		
						
					
						 
													
							
						
									
						Post 
					 
								by demond  Sun Aug 07, 2005 3:21 am 
			
			
			
			
			
			which command?
			
			
									
						
										
						 
		 
				
		
		 
	 
				
		
				
			
				
								conan_i 							 
						Voice 			
		Posts:  18 Joined:  Sun Jun 12, 2005 5:33 am 
		
						
					
						 
													
							
						
									
						Post 
					 
								by conan_i  Sun Aug 07, 2005 10:16 am 
			
			
			
			
			
			eg kick nick
			
			
									
						
										
						 
		 
				
		
		 
	 
				
		
				
			
				
								demond 							 
						Revered One 			
		Posts:  3073 Joined:  Sat Jun 12, 2004 9:58 amLocation:  San Francisco, CA
				Contact: 
				
			 
				
		 
		
						
					
						 
													
							
						
									
						Post 
					 
								by demond  Sun Aug 07, 2005 11:35 am 
			
			
			
			
			
			is that a Tcl command?
			
			
									
						
										
						 
		 
				
		
		 
	 
				
		
				
			
				
								Sir_Fz 							 
						Revered One 			
		Posts:  3794 Joined:  Sun Apr 27, 2003 3:10 pmLocation:  Lebanon
				Contact: 
				
			 
				
		 
		
						
					
						 
													
							
						
									
						Post 
					 
								by Sir_Fz  Sun Aug 07, 2005 12:31 pm 
			
			
			
			
			
			I think what he wants is to use the command "eg kick <nick>" publicly or whatever, and when there's no reason specified the script uses a random reason from a file.
Code: Select all 
# use a list instead of a file
set kickreasons {
 "reason1"
 "reason2"
 "reason3"
}
bind pubm - "eg kick *" kick:user
proc kick:user {nick uhost hand chan arg} {
 global kickreasons
 set targ [lindex [split $arg] 2]
 set reason [lindex [split $arg] 3]
 if {![llength $reason]} {
  set reason [lindex $kickreasons [rand [llength $kickreasons]]]
 }
 putserv "KICK $chan $targ :$reason"
} 
		 
				
		
		 
	 
				
		
				
			
				
								demond 							 
						Revered One 			
		Posts:  3073 Joined:  Sat Jun 12, 2004 9:58 amLocation:  San Francisco, CA
				Contact: 
				
			 
				
		 
		
						
					
						 
													
							
						
									
						Post 
					 
								by demond  Sun Aug 07, 2005 12:44 pm 
			
			
			
			
			
			Sir_Fz, noone gets even close to your ability to read n00b minds 
 
		 
				
		
		 
	 
				
		
				
			
				
								Sir_Fz 							 
						Revered One 			
		Posts:  3794 Joined:  Sun Apr 27, 2003 3:10 pmLocation:  Lebanon
				Contact: 
				
			 
				
		 
		
						
					
						 
													
							
						
									
						Post 
					 
								by Sir_Fz  Sun Aug 07, 2005 12:50 pm 
			
			
			
			
			
			demond wrote: Sir_Fz, noone gets even close to your ability to read n00b minds 
Hahaha, I can't disagree