71 if config.has_option("Notifications", "unread_file"): |
71 if config.has_option("Notifications", "unread_file"): |
72 opt['unread_file'] = config.get("Notifications", "unread_file") |
72 opt['unread_file'] = config.get("Notifications", "unread_file") |
73 if config.has_option("Notifications", "snd_cmd_msg_in"): |
73 if config.has_option("Notifications", "snd_cmd_msg_in"): |
74 opt['snd_cmd_msg_in'] = config.get("Notifications", "snd_cmd_msg_in") |
74 opt['snd_cmd_msg_in'] = config.get("Notifications", "snd_cmd_msg_in") |
75 |
75 |
76 for id in config.options("Contacts"): |
76 if config.has_section("Contacts"): |
77 contact_map[id] = config.get("Contacts", id) |
77 for id in config.options("Contacts"): |
78 |
78 contact_map[id] = config.get("Contacts", id) |
79 for id in config.options("Alerts"): |
79 |
80 online_alerts[id] = int(config.get("Alerts", id)) |
80 if config.has_section("Alerts"): |
81 |
81 for id in config.options("Alerts"): |
82 for id in config.options("Voicemap"): |
82 online_alerts[id] = int(config.get("Alerts", id)) |
83 voicemap[id] = config.get("Voicemap", id) |
83 |
84 |
84 if config.has_section("Voicemap"): |
85 for id in config.options("Blacklist"): |
85 for id in config.options("Voicemap"): |
86 blacklist[id] = int(config.get("Blacklist", id)) |
86 voicemap[id] = config.get("Voicemap", id) |
|
87 |
|
88 if config.has_section("Blacklist"): |
|
89 for id in config.options("Blacklist"): |
|
90 blacklist[id] = int(config.get("Blacklist", id)) |
87 |
91 |
88 if opt['use_notify'] and not NOTIFY_LOADED: |
92 if opt['use_notify'] and not NOTIFY_LOADED: |
89 init_notify() |
93 init_notify() |
90 |
94 |
91 def say(buddy, text): |
95 def say(buddy, text): |