Mercurial > pidgin
comparison libpurple/protocols/irc/irc.c @ 26960:da9d25c582c1
Clarify the error message when an IRC server contains spaces.
The server is part of the username (specified using an account split), so
saying "IRC nicks may..." is too specific.
Closes #8236 (though the Swedish translation still needs to be updated).
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Wed, 27 May 2009 05:47:36 +0000 |
parents | f5f08111da52 |
children | 2873ee6a960d |
comparison
equal
deleted
inserted
replaced
26959:c5aab4bf799e | 26960:da9d25c582c1 |
---|---|
304 gc->flags |= PURPLE_CONNECTION_NO_NEWLINES; | 304 gc->flags |= PURPLE_CONNECTION_NO_NEWLINES; |
305 | 305 |
306 if (strpbrk(username, " \t\v\r\n") != NULL) { | 306 if (strpbrk(username, " \t\v\r\n") != NULL) { |
307 purple_connection_error_reason (gc, | 307 purple_connection_error_reason (gc, |
308 PURPLE_CONNECTION_ERROR_INVALID_SETTINGS, | 308 PURPLE_CONNECTION_ERROR_INVALID_SETTINGS, |
309 _("IRC nicks may not contain whitespace")); | 309 _("IRC nick and server may not contain whitespace")); |
310 return; | 310 return; |
311 } | 311 } |
312 | 312 |
313 gc->proto_data = irc = g_new0(struct irc_conn, 1); | 313 gc->proto_data = irc = g_new0(struct irc_conn, 1); |
314 irc->fd = -1; | 314 irc->fd = -1; |