summaryrefslogtreecommitdiff
path: root/chatgroups.py
diff options
context:
space:
mode:
Diffstat (limited to 'chatgroups.py')
-rw-r--r--chatgroups.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/chatgroups.py b/chatgroups.py
index 9965b96..aed22cd 100644
--- a/chatgroups.py
+++ b/chatgroups.py
@@ -21,6 +21,8 @@ def on_chatgroup_command(sender, command, label, args):
if len(args) == 1 and args[0] == "leave":
if sender_id in groups.keys():
groupchat(sender, "left the group", True)
+ if sender in cg_toggle_list:
+ cg_toggle_list.remove(p)
group = groups[sender_id]
del(groups[sender_id])
save_groups()