about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-12-29 02:22:01 +0000
committerJames Booth <boothj5@gmail.com>2014-12-29 02:22:01 +0000
commit1c35321cb315b7ce5bee3f5f281df103b0bc1f77 (patch)
tree95594047380bbf02003145b605a5a146c5f28353 /src
parent254179e128b577c8f929b38edab4e43fd6b4bffd (diff)
downloadprofani-tty-1c35321cb315b7ce5bee3f5f281df103b0bc1f77.tar.gz
Fixed cmd_execute_default (resource instead of barejid)
Diffstat (limited to 'src')
-rw-r--r--src/command/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command/command.c b/src/command/command.c
index 720ff19f..9fbc0626 100644
--- a/src/command/command.c
+++ b/src/command/command.c
@@ -1804,7 +1804,7 @@ cmd_execute_default(const char * inp)
                     char *encrypted = otr_encrypt_message(chatwin->barejid, inp);
                     if (encrypted != NULL) {
                         gboolean send_state = chat_session_on_message_send(chatwin->barejid);
-                        message_send_chat(chatwin->barejid, chatwin->barejid, encrypted, send_state);
+                        message_send_chat(chatwin->barejid, chatwin->resource, encrypted, send_state);
                         otr_free_message(encrypted);
                         if (prefs_get_boolean(PREF_CHLOG)) {
                             const char *jid = jabber_get_fulljid();