comparison src/protocols/irc/msgs.c @ 12069:1019f1d510d6

[gaim-migrate @ 14364] Let's log mode changes. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Sun, 13 Nov 2005 03:39:06 +0000
parents 8bcccf2988fa
children 4d3119205a33
comparison
equal deleted inserted replaced
12068:8e9c18896431 12069:1019f1d510d6
151 if (!convo) /* XXX punt on channels we are not in for now */ 151 if (!convo) /* XXX punt on channels we are not in for now */
152 return; 152 return;
153 153
154 escaped = (args[3] != NULL) ? g_markup_escape_text(args[3], -1) : NULL; 154 escaped = (args[3] != NULL) ? g_markup_escape_text(args[3], -1) : NULL;
155 buf = g_strdup_printf("mode for %s: %s %s", args[1], args[2], escaped ? escaped : ""); 155 buf = g_strdup_printf("mode for %s: %s %s", args[1], args[2], escaped ? escaped : "");
156 gaim_conv_chat_write(GAIM_CONV_CHAT(convo), "", buf, GAIM_MESSAGE_SYSTEM|GAIM_MESSAGE_NO_LOG, time(NULL)); 156 gaim_conv_chat_write(GAIM_CONV_CHAT(convo), "", buf, GAIM_MESSAGE_SYSTEM, time(NULL));
157 g_free(escaped); 157 g_free(escaped);
158 g_free(buf); 158 g_free(buf);
159 159
160 return; 160 return;
161 } 161 }
726 g_free(nick); 726 g_free(nick);
727 return; 727 return;
728 } 728 }
729 escaped = (args[2] != NULL) ? g_markup_escape_text(args[2], -1) : NULL; 729 escaped = (args[2] != NULL) ? g_markup_escape_text(args[2], -1) : NULL;
730 buf = g_strdup_printf(_("mode (%s %s) by %s"), args[1], escaped ? escaped : "", nick); 730 buf = g_strdup_printf(_("mode (%s %s) by %s"), args[1], escaped ? escaped : "", nick);
731 gaim_conv_chat_write(GAIM_CONV_CHAT(convo), args[0], buf, GAIM_MESSAGE_SYSTEM|GAIM_MESSAGE_NO_LOG, time(NULL)); 731 gaim_conv_chat_write(GAIM_CONV_CHAT(convo), args[0], buf, GAIM_MESSAGE_SYSTEM, time(NULL));
732 g_free(escaped); 732 g_free(escaped);
733 g_free(buf); 733 g_free(buf);
734 if(args[2]) { 734 if(args[2]) {
735 GaimConvChatBuddyFlags newflag, flags; 735 GaimConvChatBuddyFlags newflag, flags;
736 char *mcur, *cur, *end, *user; 736 char *mcur, *cur, *end, *user;