From cdc33d08b0d964a03e45b3582d8ba9b69e682486 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sat, 15 Oct 2005 12:34:21 +0000 Subject: New plugin interface (loads dynamic C libraries) --- src/irc/irc-recv.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/irc') diff --git a/src/irc/irc-recv.c b/src/irc/irc-recv.c index 21fde3eda..6e3052746 100644 --- a/src/irc/irc-recv.c +++ b/src/irc/irc-recv.c @@ -179,8 +179,13 @@ irc_recv_command (t_irc_server *server, char *entire_line, return_code = (int) (irc_commands[i].recv_function) (server, host, nick, arguments); if (nick) free (nick); +#ifdef PLUGINS if (!command_ignored) - plugin_event_msg (irc_commands[i].command_name, server->name, entire_line); + plugin_msg_handler_exec (server->name, irc_commands[i].command_name, entire_line); +#else + /* make gcc happy */ + (void) entire_line; +#endif return return_code; } -- cgit v1.2.3