about summary refs log tree commit diff stats
path: root/src/xmpp/message.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-03-08 21:20:26 +0000
committerJames Booth <boothj5@gmail.com>2014-03-08 21:20:26 +0000
commitb177250f47f5599943b6772aed43de49834147e2 (patch)
tree822ad8a0b4e38c84b1e004922e1a8e0308d809ac /src/xmpp/message.c
parentdd1ee18c72268839de8af64de5eb07c5a2499ff2 (diff)
downloadprofani-tty-b177250f47f5599943b6772aed43de49834147e2.tar.gz
Refactored muc_room_is_active to only take room, rather than full jid
Diffstat (limited to 'src/xmpp/message.c')
-rw-r--r--src/xmpp/message.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xmpp/message.c b/src/xmpp/message.c
index 5a7e9075..65be9b8c 100644
--- a/src/xmpp/message.c
+++ b/src/xmpp/message.c
@@ -386,7 +386,7 @@ _groupchat_handler(xmpp_conn_t * const conn,
     }
 
     // room not active in profanity
-    if (!muc_room_is_active(jid)) {
+    if (!muc_room_is_active(jid->barejid)) {
         log_error("Message recieved for inactive chat room: %s", jid->str);
         jid_destroy(jid);
         return 1;
@@ -438,7 +438,7 @@ _chat_handler(xmpp_conn_t * const conn, xmpp_stanza_t * const stanza,
         return 1;
 
     // private message from chat room use full jid (room/nick)
-    } else if (muc_room_is_active(jid)) {
+    } else if (muc_room_is_active(jid->barejid)) {
         // determine if the notifications happened whilst offline
         GTimeVal tv_stamp;
         gboolean delayed = stanza_get_delay(stanza, &tv_stamp);