Don't ping self
This commit is contained in:
		
							父節點
							
								
									e713e6a162
								
							
						
					
					
						當前提交
						1ca6974b64
					
				
							
								
								
									
										2
									
								
								handle.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								handle.c
									
									
									
									
									
								
							@ -308,7 +308,7 @@ static void handlePrivmsg(char *prefix, char *params) {
 | 
				
			|||||||
	if (!isSelf(nick, user)) tabTouch(tag, nick);
 | 
						if (!isSelf(nick, user)) tabTouch(tag, nick);
 | 
				
			||||||
	urlScan(tag, mesg);
 | 
						urlScan(tag, mesg);
 | 
				
			||||||
	bool self = isSelf(nick, user);
 | 
						bool self = isSelf(nick, user);
 | 
				
			||||||
	bool ping = isPing(mesg);
 | 
						bool ping = !self && isPing(mesg);
 | 
				
			||||||
	uiFmt(
 | 
						uiFmt(
 | 
				
			||||||
		tag, "%c\3%d%c%s%c\17 %s",
 | 
							tag, "%c\3%d%c%s%c\17 %s",
 | 
				
			||||||
		ping["\17\26"], color(user), self["<("], nick, self[">)"], mesg
 | 
							ping["\17\26"], color(user), self["<("], nick, self[">)"], mesg
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user