1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-30 14:56:39 +02:00

irc: fix error displayed on connection in case of insufficient memory

This commit is contained in:
Sébastien Helleu
2024-03-26 20:22:50 +01:00
parent fd06c67b58
commit 372ffc1690
+2 -3
View File
@@ -4685,9 +4685,8 @@ irc_server_connect_cb (const void *pointer, void *data,
case WEECHAT_HOOK_CONNECT_MEMORY_ERROR:
weechat_printf (
server->buffer,
_("%s%s: not enough memory (%s)"),
weechat_prefix ("error"), IRC_PLUGIN_NAME,
(error) ? error : "-");
_("%s%s: not enough memory"),
weechat_prefix ("error"), IRC_PLUGIN_NAME);
if (error && error[0])
{
weechat_printf (