# HG changeset patch # User Ethan Blanton # Date 1062780763 0 # Node ID 90fd056e755d839f60f46caef2a2ea6bd7f5cbe6 # Parent 35b01b371785d9586f8fa9b7af88b089cdf915f7 [gaim-migrate @ 7284] disallow spaces in nicks committer: Tailor Script diff -r 35b01b371785 -r 90fd056e755d src/protocols/irc/irc.c --- a/src/protocols/irc/irc.c Fri Sep 05 07:11:01 2003 +0000 +++ b/src/protocols/irc/irc.c Fri Sep 05 16:52:43 2003 +0000 @@ -141,6 +141,11 @@ gc = gaim_account_get_connection(account); + if (strpbrk(username, " \t\v\r\n") != NULL) { + gaim_connection_error(gc, _("IRC nicks may not contain whitespace")); + return; + } + gc->proto_data = irc = g_new0(struct irc_conn, 1); irc->account = account; @@ -220,6 +225,9 @@ { struct irc_conn *irc = gc->proto_data; + if (irc == NULL) + return; + irc_cmd_quit(irc, "quit", NULL, NULL); if (gc->inpa)