diff src/server.c @ 1339:6b31e7948b05

[gaim-migrate @ 1349] Fixed a segfault with "Ignore conversations while away" committer: Tailor Script <tailor@pidgin.im>
author Rob Flynn <gaim@robflynn.com>
date Thu, 21 Dec 2000 01:07:18 +0000
parents f3303fc05572
children 1526caa87138
line wrap: on
line diff
--- a/src/server.c	Thu Dec 21 00:21:40 2000 +0000
+++ b/src/server.c	Thu Dec 21 01:07:18 2000 +0000
@@ -309,6 +309,7 @@
 	char *buffy = g_strdup(message);
 	char *angel = g_strdup(name);
 	int plugin_return = plugin_event(event_im_recv, gc, &angel, &buffy, 0);
+
 	if (!buffy || !angel || plugin_return) {
 		if (buffy)
 			g_free(buffy);
@@ -345,6 +346,9 @@
 				cnv = new_conversation(name);
 			}
 		}
+		else {
+			return;
+		}
 		if (cnv != NULL) {
 			play_sound(RECEIVE);
 			write_to_conv(cnv, message, away | WFLAG_RECV, NULL);