Fall back to global username for sasl

This commit is contained in:
TingPing 2013-04-22 07:30:33 -03:00
parent 4e891102f2
commit 9603248a5b
1 changed files with 2 additions and 2 deletions

View File

@ -634,11 +634,11 @@ servlist_connect (session *sess, ircnet *net, gboolean join)
safe_strcpy (serv->password, net->pass, sizeof (serv->password));
}
if (net->flags & FLAG_USE_GLOBAL)
if (net->flags & FLAG_USE_GLOBAL || net->user == NULL)
{
strcpy (serv->sasluser, prefs.hex_irc_user_name);
}
else if (net->user != NULL)
else
{
safe_strcpy (serv->sasluser, net->user, sizeof (serv->sasluser));
}