summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2005-10-15 12:34:21 +0000
committerSebastien Helleu <flashcode@flashtux.org>2005-10-15 12:34:21 +0000
commitcdc33d08b0d964a03e45b3582d8ba9b69e682486 (patch)
tree08f3bb88ba2c0ed1348d5b386892d43bab5f9c59 /src/irc
parent5130b1dc4fd2f2cc50165cd291fc37246c988bec (diff)
downloadweechat-cdc33d08b0d964a03e45b3582d8ba9b69e682486.zip
New plugin interface (loads dynamic C libraries)
Diffstat (limited to 'src/irc')
-rw-r--r--src/irc/irc-recv.c7
1 files changed, 6 insertions, 1 deletions
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;
}