diff options
author | Kristofer M White <me@kmwhite.net> | 2014-03-05 19:55:02 +0000 |
---|---|---|
committer | Kristofer M White <me@kmwhite.net> | 2014-03-05 19:55:02 +0000 |
commit | 7c6755b62cf35deac7a98e30d91765fad3ca2d7f (patch) | |
tree | d3cbe2d15b92213faf9f058060be3b39a6ee3567 | |
parent | 3f18d933ca91b346bf1f10effcb42f47992468dd (diff) | |
download | profani-tty-7c6755b62cf35deac7a98e30d91765fad3ca2d7f.tar.gz |
Ensuring nick is set when not included in opt args for cmd_join
-rw-r--r-- | src/command/commands.c | 5 |
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; } |