| 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; |