comparison mcabber/src/jabglue.c @ 732:ab623c2df964

MUC: Update the chat status line when the topic is updated
author Mikael Berthe <mikael@lilotux.net>
date Thu, 09 Mar 2006 18:06:02 +0100
parents 264375fe7159
children 2f027806cd48
comparison
equal deleted inserted replaced
731:f30031cdb56b 732:ab623c2df964
1388 if (settings_opt_get_int("log_muc_conf")) 1388 if (settings_opt_get_int("log_muc_conf"))
1389 hlog_write_message(s, 0, FALSE, mbuf); 1389 hlog_write_message(s, 0, FALSE, mbuf);
1390 if (subj_noutf8) g_free(subj_noutf8); 1390 if (subj_noutf8) g_free(subj_noutf8);
1391 g_free(s); 1391 g_free(s);
1392 g_free(mbuf); 1392 g_free(mbuf);
1393 // The topic is displayed in the chat status line, so refresh now.
1394 scr_UpdateChatStatus(TRUE);
1393 } else { // Chat message 1395 } else { // Chat message
1394 tmp = g_new(char, (body ? strlen(body) : 0) + strlen(p) + 4); 1396 tmp = g_new(char, (body ? strlen(body) : 0) + strlen(p) + 4);
1395 *tmp = '['; 1397 *tmp = '[';
1396 strcpy(tmp+1, p); 1398 strcpy(tmp+1, p);
1397 strcat(tmp, "]\n"); 1399 strcat(tmp, "]\n");