mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
parent
b9fc61fd30
commit
1cf20b2491
@ -2118,6 +2118,20 @@ _cmd_msg(gchar **args, struct cmd_help_t help)
|
||||
|
||||
return TRUE;
|
||||
} else {
|
||||
const char * jid = NULL;
|
||||
|
||||
if (roster_barejid_from_name(usr_jid) != NULL) {
|
||||
jid = roster_barejid_from_name(usr_jid);
|
||||
} else {
|
||||
jid = usr_jid;
|
||||
}
|
||||
|
||||
if (prefs_get_boolean(PREF_STATES)) {
|
||||
if (!chat_session_exists(jid)) {
|
||||
chat_session_start(jid, TRUE);
|
||||
}
|
||||
}
|
||||
|
||||
ui_new_chat_win(usr_jid);
|
||||
return TRUE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user