Merge branch 'master' into pgp

This commit is contained in:
James Booth
2015-03-29 03:17:41 +01:00
7 changed files with 47 additions and 17 deletions

View File

@@ -2129,10 +2129,15 @@ cmd_join(gchar **args, struct cmd_help_t help)
options_destroy(options);
// In the case that a nick wasn't provided by the optional args...
if (nick == NULL) {
if (!nick) {
nick = account->muc_nick;
}
// When no password, check for invite with password
if (!passwd) {
passwd = muc_invite_password(room);
}
if (!muc_active(room)) {
presence_join_room(room, nick, passwd);
muc_join(room, nick, passwd, FALSE);