diff options
Diffstat (limited to 'whiteboard/plugin.py')
-rw-r--r-- | whiteboard/plugin.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/whiteboard/plugin.py b/whiteboard/plugin.py index e07ebd6..e28236f 100644 --- a/whiteboard/plugin.py +++ b/whiteboard/plugin.py @@ -101,6 +101,10 @@ class WhiteboardPlugin(GajimPlugin): @log_calls('WhiteboardPlugin') def connect_with_chat_control(self, control): + for base in self.controls: + if base.chat_control == control: + self.controls.remove(base) + if isinstance(control, chat_control.ChatControl): base = Base(self, control) self.controls.append(base) |