do not try to send a message if we are not connected
This commit is contained in:
parent
1246126276
commit
069abbd00b
|
@ -151,6 +151,9 @@ class tabbed_chat_window(Chat):
|
|||
if event.keyval == gtk.keysyms.Return:
|
||||
if (event.state & gtk.gdk.SHIFT_MASK):
|
||||
return 0
|
||||
if self.plugin.connected[self.account] < 2: #we are not connected
|
||||
Error_dialog(_('You are not connected, so you cannot send a message'))
|
||||
return 1
|
||||
message_buffer = widget.get_buffer()
|
||||
start_iter = message_buffer.get_start_iter()
|
||||
end_iter = message_buffer.get_end_iter()
|
||||
|
|
Loading…
Reference in New Issue