From fce295d64a810367053edab9909c9c04e90d512c Mon Sep 17 00:00:00 2001 From: James Booth Date: Wed, 22 May 2013 13:47:25 +0100 Subject: Fixed #174 --- src/command/command.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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); -- cgit 1.4.1-2-gfad0