aboutsummaryrefslogtreecommitdiff
path: root/xmpp-vala
diff options
context:
space:
mode:
Diffstat (limited to 'xmpp-vala')
-rw-r--r--xmpp-vala/src/module/xep/0191_blocking_command.vala6
1 files changed, 5 insertions, 1 deletions
diff --git a/xmpp-vala/src/module/xep/0191_blocking_command.vala b/xmpp-vala/src/module/xep/0191_blocking_command.vala
index 987f538a..9e5ede78 100644
--- a/xmpp-vala/src/module/xep/0191_blocking_command.vala
+++ b/xmpp-vala/src/module/xep/0191_blocking_command.vala
@@ -12,7 +12,11 @@ public class Module : XmppStreamModule, Iq.Handler {
public signal void unblock_all_received(XmppStream stream);
public bool is_blocked(XmppStream stream, string jid) {
- return stream.get_flag(Flag.IDENTITY).blocklist.contains(jid);
+ if (is_supported(stream)) {
+ return stream.get_flag(Flag.IDENTITY).blocklist.contains(jid);
+ } else {
+ return false;
+ }
}
public bool block(XmppStream stream, string[] jids) {