Mercurial > pidgin
diff src/protocols/irc/msgs.c @ 7877:828856b7fe30
[gaim-migrate @ 8531]
I suppose IRC should handle 403 (no such channel)
committer: Tailor Script <tailor@pidgin.im>
author | Ethan Blanton <elb@pidgin.im> |
---|---|
date | Sun, 14 Dec 2003 23:20:41 +0000 |
parents | bf630f7dfdcd |
children | 7a6e30eb7aad |
line wrap: on
line diff
--- a/src/protocols/irc/msgs.c Sun Dec 14 23:15:55 2003 +0000 +++ b/src/protocols/irc/msgs.c Sun Dec 14 23:20:41 2003 +0000 @@ -360,6 +360,16 @@ irc->timer = g_timeout_add(45000, (GSourceFunc)irc_blist_timeout, (gpointer)irc); } +void irc_msg_nochan(struct irc_conn *irc, const char *name, const char *from, char **args) +{ + GaimConnection *gc = gaim_account_get_connection(irc->account); + + if (gc == NULL || args == NULL || args[1] == NULL) + return; + + gaim_notify_error(gc, NULL, _("No such channel"), args[1]); +} + void irc_msg_nonick(struct irc_conn *irc, const char *name, const char *from, char **args) { GaimConnection *gc;