summaryrefslogtreecommitdiff
path: root/src/plugins/plugins.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/plugins.c')
-rw-r--r--src/plugins/plugins.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/plugins.c b/src/plugins/plugins.c
index f1d180d1a..c33f94900 100644
--- a/src/plugins/plugins.c
+++ b/src/plugins/plugins.c
@@ -30,6 +30,7 @@
#include <string.h>
#include "../common/weechat.h"
#include "plugins.h"
+#include "../irc/irc.h"
#include "../gui/gui.h"
#ifdef PLUGIN_PERL
@@ -129,9 +130,12 @@ plugin_handler_add (t_plugin_handler **plugin_handlers,
*last_plugin_handler = new_plugin_handler;
}
else
+ {
+ irc_display_prefix (NULL, PREFIX_ERROR);
gui_printf (NULL,
_("%s unable to add handler for \"%s\" message (not enough memory)\n"),
WEECHAT_ERROR, name);
+ }
}
/*