diff options
Diffstat (limited to 'src/common/command.c')
-rw-r--r-- | src/common/command.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/common/command.c b/src/common/command.c index ae2ff530e..431d6e272 100644 --- a/src/common/command.c +++ b/src/common/command.c @@ -779,7 +779,15 @@ user_message (t_irc_server *server, t_gui_buffer *buffer, char *text) if (!text || !text[0]) return; - + + if (!server->is_connected) + { + irc_display_prefix (server, buffer, PREFIX_ERROR); + gui_printf (buffer, _("%s you are not connected to server\n"), + WEECHAT_ERROR); + return; + } + next = NULL; last_space = NULL; saved_char = '\0'; |