diff options
author | James Booth <boothj5@gmail.com> | 2013-05-22 13:47:25 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2013-05-22 13:47:25 +0100 |
commit | fce295d64a810367053edab9909c9c04e90d512c (patch) | |
tree | 5f9ef26341d8749b25b73f414933d78d269a07eb /src | |
parent | c4e279202b0b0dfe5b80320f262ddc121fa9d7b1 (diff) | |
download | profani-tty-fce295d64a810367053edab9909c9c04e90d512c.tar.gz |
Fixed #174
Diffstat (limited to 'src')
-rw-r--r-- | src/command/command.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/command/command.c b/src/command/command.c index 840ce6a0..d6c8f8b3 100644 --- a/src/command/command.c +++ b/src/command/command.c @@ -1974,6 +1974,9 @@ _cmd_msg(gchar **args, struct cmd_help_t help) } else { char *usr_jid = roster_barejid_from_name(usr); + if (usr_jid == NULL) { + usr_jid = usr; + } if (msg != NULL) { message_send(msg, usr_jid); ui_outgoing_msg("me", usr_jid, msg); |