Mercurial > pidgin
diff src/protocols/irc/msgs.c @ 6718:37af5dea14d1
[gaim-migrate @ 7245]
IRC diety schmiety
committer: Tailor Script <tailor@pidgin.im>
author | Ethan Blanton <elb@pidgin.im> |
---|---|
date | Wed, 03 Sep 2003 03:21:27 +0000 |
parents | 0c260c4e753e |
children | c3d8e8190d77 |
line wrap: on
line diff
--- a/src/protocols/irc/msgs.c Wed Sep 03 01:13:20 2003 +0000 +++ b/src/protocols/irc/msgs.c Wed Sep 03 03:21:27 2003 +0000 @@ -647,6 +647,19 @@ irc_msg_privmsg(irc, name, from, newargs); } +void irc_msg_nochangenick(struct irc_conn *irc, const char *name, const char *from, char **args) +{ + GaimConnection *gc = gaim_account_get_connection(irc->account); + char *msg; + + if (!args || !args[1] || !args[2] || !gc) + return; + + msg = g_strdup_printf(_("Could not change nick:"), args[1]); + gaim_notify_error(gc, _("Cannot change nick"), msg, args[2]); + g_free(msg); +} + void irc_msg_part(struct irc_conn *irc, const char *name, const char *from, char **args) { GaimConnection *gc = gaim_account_get_connection(irc->account);