about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-05-22 13:47:25 +0100
committerJames Booth <boothj5@gmail.com>2013-05-22 13:47:25 +0100
commitfce295d64a810367053edab9909c9c04e90d512c (patch)
tree5f9ef26341d8749b25b73f414933d78d269a07eb
parentc4e279202b0b0dfe5b80320f262ddc121fa9d7b1 (diff)
downloadprofani-tty-fce295d64a810367053edab9909c9c04e90d512c.tar.gz
Fixed #174
-rw-r--r--src/command/command.c3
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);