aboutsummaryrefslogtreecommitdiff
path: root/xmpp-vala/src/module/xep
diff options
context:
space:
mode:
authorfiaxh <git@mx.ax.lt>2017-11-01 18:49:53 +0100
committerfiaxh <git@mx.ax.lt>2017-11-01 18:53:38 +0100
commit81e05e6645e2bea08c73432c1b41ae6b73bd464f (patch)
tree6824f2895850dd0392c0f5899e47b4d1486a2f59 /xmpp-vala/src/module/xep
parentd82194af58c8ff92634ce57ef293894ec4422efa (diff)
downloaddino-81e05e6645e2bea08c73432c1b41ae6b73bd464f.tar.gz
dino-81e05e6645e2bea08c73432c1b41ae6b73bd464f.zip
small fixes
Diffstat (limited to 'xmpp-vala/src/module/xep')
-rw-r--r--xmpp-vala/src/module/xep/0191_blocking_command.vala5
1 files changed, 1 insertions, 4 deletions
diff --git a/xmpp-vala/src/module/xep/0191_blocking_command.vala b/xmpp-vala/src/module/xep/0191_blocking_command.vala
index 53d7bb7b..1520577f 100644
--- a/xmpp-vala/src/module/xep/0191_blocking_command.vala
+++ b/xmpp-vala/src/module/xep/0191_blocking_command.vala
@@ -14,10 +14,7 @@ public class Module : XmppStreamModule, Iq.Handler {
public signal void unblock_all_received(XmppStream stream);
public bool is_blocked(XmppStream stream, string jid) {
- foreach (string blocked in stream.get_flag(Flag.IDENTITY).blocklist) {
- if (blocked.contains(jid)) return true;
- }
- return false;
+ return stream.get_flag(Flag.IDENTITY).blocklist.contains(jid);
}
public bool block(XmppStream stream, Gee.List<string> jids) {