libpurple/protocols/irc/parse.c

changeset 40052
cc03b5af25ea
parent 40001
a63721e6215f
child 40439
e9838d634d5e
equal deleted inserted replaced
40050:099e1c9bfac3 40052:cc03b5af25ea
237 irc_register_command(c); 237 irc_register_command(c);
238 } 238 }
239 239
240 void irc_unregister_commands(void) 240 void irc_unregister_commands(void)
241 { 241 {
242 while (cmds) { 242 g_slist_free_full(cmds, (GDestroyNotify)purple_cmd_unregister);
243 PurpleCmdId id = GPOINTER_TO_UINT(cmds->data);
244 purple_cmd_unregister(id);
245 cmds = g_slist_delete_link(cmds, cmds);
246 }
247 } 243 }
248 244
249 static char *irc_send_convert(struct irc_conn *irc, const char *string) 245 static char *irc_send_convert(struct irc_conn *irc, const char *string)
250 { 246 {
251 char *utf8; 247 char *utf8;

mercurial