Mercurial > hg
comparison mcabber/src/commands.c @ 988:6e2bfd1ffded
Add ids to message stanzas if needed
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Mon, 30 Oct 2006 23:37:58 +0100 |
parents | ea939ff047d8 |
children | c8b1a52b2fd6 |
comparison
equal
deleted
inserted
replaced
987:f47e312560af | 988:6e2bfd1ffded |
---|---|
318 hk_message_out(jid, NULL, 0, hmsg); | 318 hk_message_out(jid, NULL, 0, hmsg); |
319 if (hmsg != msg) g_free(hmsg); | 319 if (hmsg != msg) g_free(hmsg); |
320 } | 320 } |
321 | 321 |
322 // Network part | 322 // Network part |
323 jb_send_msg(jid, msg, buddy_gettype(BUDDATA(current_buddy)), subj); | 323 jb_send_msg(jid, msg, buddy_gettype(BUDDATA(current_buddy)), subj, NULL); |
324 } | 324 } |
325 | 325 |
326 // process_command(line) | 326 // process_command(line) |
327 // Process a command line. | 327 // Process a command line. |
328 // Return 255 if this is the /quit command, and 0 for the other commands. | 328 // Return 255 if this is the /quit command, and 0 for the other commands. |
823 | 823 |
824 hk_message_out(bare_jid, rp, 0, hmsg); | 824 hk_message_out(bare_jid, rp, 0, hmsg); |
825 if (hmsg != msg) g_free(hmsg); | 825 if (hmsg != msg) g_free(hmsg); |
826 | 826 |
827 // Network part | 827 // Network part |
828 jb_send_msg(jid, msg, ROSTER_TYPE_USER, subj); | 828 jb_send_msg(jid, msg, ROSTER_TYPE_USER, subj, NULL); |
829 | 829 |
830 if (rp) g_free(bare_jid); | 830 if (rp) g_free(bare_jid); |
831 return 0; | 831 return 0; |
832 } | 832 } |
833 | 833 |
1910 } | 1910 } |
1911 | 1911 |
1912 arg = to_utf8(arg); | 1912 arg = to_utf8(arg); |
1913 // Set the topic | 1913 // Set the topic |
1914 msg = g_strdup_printf("%s has set the topic to: %s", mkcmdstr("me"), arg); | 1914 msg = g_strdup_printf("%s has set the topic to: %s", mkcmdstr("me"), arg); |
1915 jb_send_msg(buddy_getjid(bud), msg, ROSTER_TYPE_ROOM, arg); | 1915 jb_send_msg(buddy_getjid(bud), msg, ROSTER_TYPE_ROOM, arg, NULL); |
1916 g_free(arg); | 1916 g_free(arg); |
1917 g_free(msg); | 1917 g_free(msg); |
1918 } | 1918 } |
1919 | 1919 |
1920 static void room_destroy(gpointer bud, char *arg) | 1920 static void room_destroy(gpointer bud, char *arg) |