Philipp Hörist pushed to branch gajim_0.16 at gajim / gajim
Commits:
-
ff94fe39
by Philipp Hörist at 2017-02-02T19:56:24+01:00
1 changed file:
Changes:
| ... | ... | @@ -2441,10 +2441,11 @@ class Connection(CommonConnection, ConnectionHandlers): |
| 2441 | 2441 |
self.blocked_groups.append(rule['value'])
|
| 2442 | 2442 |
self.blocked_list.append(rule)
|
| 2443 | 2443 |
|
| 2444 |
- if rule['type'] == 'jid':
|
|
| 2445 |
- roster.draw_contact(rule['value'], self.name)
|
|
| 2446 |
- if rule['type'] == 'group':
|
|
| 2447 |
- roster.draw_group(rule['value'], self.name)
|
|
| 2444 |
+ if 'type' in rule:
|
|
| 2445 |
+ if rule['type'] == 'jid':
|
|
| 2446 |
+ roster.draw_contact(rule['value'], self.name)
|
|
| 2447 |
+ if rule['type'] == 'group':
|
|
| 2448 |
+ roster.draw_group(rule['value'], self.name)
|
|
| 2448 | 2449 |
|
| 2449 | 2450 |
def _request_bookmarks_xml(self):
|
| 2450 | 2451 |
if not gajim.account_is_connected(self.name):
|