1

fix: exception in muc-filter

This commit is contained in:
diSabler
2015-07-01 21:45:21 +03:00
parent bece5a03f3
commit e788215c20

View File

@@ -250,6 +250,7 @@ def muc_filter_set(iq,id,room,acclvl,query,towh,al):
return True return True
tojid = rss_replace(get_tag_item(msg,'presence','to')) tojid = rss_replace(get_tag_item(msg,'presence','to'))
if not tojid: tojid = rn
if is_owner(jid): pass if is_owner(jid): pass
elif get_config(gr,'muc_filter') and not mute: elif get_config(gr,'muc_filter') and not mute:
show = ['online',get_tag(msg,'show')][int('<show>' in msg and '</show>' in msg)] show = ['online',get_tag(msg,'show')][int('<show>' in msg and '</show>' in msg)]