diff src/gtkconv.c @ 8573:7dcd6f26e4a7

[gaim-migrate @ 9321] " This patch reimplements the system log. It writes system log to ~/.gaim/logs/<protocol>/<username>/.system/<timestamp>.(txt|html), where <timestamp> is the time that the account <username> with <protocol> signs on. Nathan (faceprint) and LSchiere suggested this logging scheme. No code is currently written to read the old system logs. Note that if you change the logging format, you need to re-login the accounts for the change to take effect." --Ka-Hing (javabsp) Cheung who continues: "Now this one applies, also contains a rider patch that, if you enable sound for "Someone says your name in chat", it will not play a sound if the message is a system message, like if jabber chat tells you that "*** becomes available" and *** is you, it won't play a sound." committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Sat, 03 Apr 2004 18:34:29 +0000
parents fcb03dabbc53
children d7c85220c685
line wrap: on
line diff
--- a/src/gtkconv.c	Sat Apr 03 18:01:58 2004 +0000
+++ b/src/gtkconv.c	Sat Apr 03 18:34:29 2004 +0000
@@ -4419,7 +4419,8 @@
 			gaim_sound_play_event(GAIM_SOUND_CHAT_YOU_SAY);
 		else if (flags & GAIM_MESSAGE_RECV) {
 			if ((flags & GAIM_MESSAGE_NICK) &&
-				gaim_prefs_get_bool("/gaim/gtk/sound/enabled/nick_said")) {
+				gaim_prefs_get_bool("/gaim/gtk/sound/enabled/nick_said") &&
+				!(flags & GAIM_MESSAGE_SYSTEM)) {
 
 				gaim_sound_play_event(GAIM_SOUND_CHAT_NICK);
 			}