mirror of
https://github.com/weechat/weechat.git
synced 2026-07-02 15:53:12 +02:00
Fixed crash when sending data to channel or pv on disconnected server (bug #20524)
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user