summaryrefslogtreecommitdiff
path: root/src/plugins/irc/irc-server.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2024-03-26 20:22:50 +0100
committerSébastien Helleu <flashcode@flashtux.org>2024-03-26 20:22:50 +0100
commit372ffc16905b2b5023d34348dd23c315f038b7db (patch)
tree83d1ec1d650ac12edf8394d621faab554520866c /src/plugins/irc/irc-server.c
parentfd06c67b585f971f40da3f1f3ec4ba7dd0348645 (diff)
downloadweechat-372ffc16905b2b5023d34348dd23c315f038b7db.zip
irc: fix error displayed on connection in case of insufficient memory
Diffstat (limited to 'src/plugins/irc/irc-server.c')
-rw-r--r--src/plugins/irc/irc-server.c5
1 files changed, 2 insertions, 3 deletions
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 (