src/server.c

changeset 9584
1a6198375303
parent 9514
05247f11e65c
child 9594
7a1f902b9494
--- a/src/server.c	Sat Jul 24 15:14:43 2004 +0000
+++ b/src/server.c	Sat Jul 24 15:18:32 2004 +0000
@@ -1521,9 +1521,9 @@
 }
 
 void serv_got_chat_in(GaimConnection *g, int id, const char *who,
-					  int whisper, const char *message, time_t mtime)
+					  GaimConvChatFlags chatflags, const char *message, time_t mtime)
 {
-	GaimMessageFlags w;
+	GaimMessageFlags msgflags = 0;
 	GSList *bcs;
 	GaimConversation *conv = NULL;
 	GaimConvChat *chat = NULL;
@@ -1578,12 +1578,12 @@
 	/* Make sure URLs are clickable */
 	buf = gaim_markup_linkify(message);
 
-	if (whisper)
-		w = GAIM_MESSAGE_WHISPER;
-	else
-		w = 0;
+	if (chatflags & GAIM_CONV_CHAT_WHISPER)
+		msgflags |= GAIM_MESSAGE_WHISPER;
+	if (chatflags & GAIM_CONV_CHAT_DELAYED)
+		msgflags |= GAIM_MESSAGE_DELAYED;
 
-	gaim_conv_chat_write(chat, who, buf, w, mtime);
+	gaim_conv_chat_write(chat, who, buf, msgflags, mtime);
 
 	g_free(angel);
 	g_free(buf);

mercurial