diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2005-11-06 22:56:13 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2005-11-06 22:56:13 +0000 |
commit | 159371cbd94325154ee85739a8ebcddf623ac3a8 (patch) | |
tree | b6c1866fb84c9d91038c884e77df236ee7480a5d /src/common | |
parent | 78c110ace288496b837bc08580c5cff8b562b7e3 (diff) | |
download | weechat-159371cbd94325154ee85739a8ebcddf623ac3a8.zip |
Commented out code for calling PRIVMSG plugins handlers when user send text to
channel/private (was causing problems with Perl scripts unload)
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/command.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/common/command.c b/src/common/command.c index 6bbddade7..0077b70a9 100644 --- a/src/common/command.c +++ b/src/common/command.c @@ -790,8 +790,16 @@ user_command (t_irc_server *server, t_gui_buffer *buffer, char *command) if (command_with_colors2) free (command_with_colors2); - /* sending a copy of the message as PRIVMSG to plugins because irc server doesn't */ - plugin_args_length = strlen ("localhost PRIVMSG :") + + /* sending a copy of the message as PRIVMSG to plugins because irc server doesn't */ + + /* code commented by FlashCode, 2005-11-06: problem when a handler + is called after a weechat::command("somethin") in perl, reetrance, + and crash at perl script unload */ + + /* make gcc happy */ + (void) plugin_args_length; + (void) plugin_args; + /*plugin_args_length = strlen ("localhost PRIVMSG :") + strlen (CHANNEL(buffer)->name) + strlen(command) + 16; plugin_args = (char *) malloc (plugin_args_length * sizeof (*plugin_args)); @@ -811,7 +819,7 @@ user_command (t_irc_server *server, t_gui_buffer *buffer, char *command) gui_printf (NULL, _("%s unable to call handler for message (not enough memory)\n"), WEECHAT_ERROR); - } + }*/ } else { |