From 372ffc16905b2b5023d34348dd23c315f038b7db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Tue, 26 Mar 2024 20:22:50 +0100 Subject: irc: fix error displayed on connection in case of insufficient memory --- src/plugins/irc/irc-server.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/plugins/irc/irc-server.c') diff --git a/src/plugins/irc/irc-server.c b/src/plugins/irc/irc-server.c index b25e5a945..a7ab847b4 100644 --- a/src/plugins/irc/irc-server.c +++ b/src/plugins/irc/irc-server.c @@ -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 ( -- cgit v1.2.3