about summary refs log tree commit diff stats
path: root/src/command/commands.c
diff options
context:
space:
mode:
authorKristofer M White <me@kmwhite.net>2014-03-05 19:55:02 +0000
committerKristofer M White <me@kmwhite.net>2014-03-05 19:55:02 +0000
commit7c6755b62cf35deac7a98e30d91765fad3ca2d7f (patch)
treed3cbe2d15b92213faf9f058060be3b39a6ee3567 /src/command/commands.c
parent3f18d933ca91b346bf1f10effcb42f47992468dd (diff)
downloadprofani-tty-7c6755b62cf35deac7a98e30d91765fad3ca2d7f.tar.gz
Ensuring nick is set when not included in opt args for cmd_join
Diffstat (limited to 'src/command/commands.c')
-rw-r--r--src/command/commands.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/command/commands.c b/src/command/commands.c
index d6e33a29..9f4882fa 100644
--- a/src/command/commands.c
+++ b/src/command/commands.c
@@ -1643,9 +1643,10 @@ cmd_join(gchar **args, struct cmd_help_t help)
                 }
             }
         }
+    }
 
-    // otherwise use account preference
-    } else {
+    // In the case that a nick wasn't provided by the optional args...
+    if (nick == NULL) {
         nick = account->muc_nick;
     }