mirror of
				https://github.com/Tha14/toxic.git
				synced 2025-10-31 15:26:51 +01:00 
			
		
		
		
	make own nick green in groupchats
This commit is contained in:
		| @@ -109,10 +109,10 @@ static void groupchat_onGroupMessage(ToxWindow *self, Tox *m, int groupnum, int | ||||
|     /* check if message contains own name and alert appropriately */ | ||||
|     int alert_type = WINDOW_ALERT_1; | ||||
|     bool beep = false; | ||||
|     int nick_clr = CYAN; | ||||
|  | ||||
|     uint8_t selfnick[TOX_MAX_NAME_LENGTH] = {'\0'}; | ||||
|     tox_get_self_name(m, selfnick, TOX_MAX_NAME_LENGTH); | ||||
|     int nick_clr = strcmp(nick, selfnick) == 0 ? GREEN : CYAN; | ||||
|  | ||||
|     bool nick_match = strcasestr(msg, selfnick) && strncmp(selfnick, nick, TOXIC_MAX_NAME_LENGTH); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user