diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2006-12-03 23:26:03 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2006-12-03 23:26:03 +0000 |
commit | 78accc74a382767e43e5aaed53fe02f8834dc7cd (patch) | |
tree | 3aa5b830abbd8e83eaf1ab811ac0c8a804a91a69 /src/plugins | |
parent | fe1e7bdce6dba6c2654050b057b91c1b395763fd (diff) | |
download | weechat-78accc74a382767e43e5aaed53fe02f8834dc7cd.zip |
Fixed bug in plugin modifier exec when many modifiers are called for a message
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/plugins.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/plugins.c b/src/plugins/plugins.c index 4d9970384..ac69430df 100644 --- a/src/plugins/plugins.c +++ b/src/plugins/plugins.c @@ -758,7 +758,7 @@ plugin_modifier_exec (t_plugin_modifier_type type, t_weechat_plugin *ptr_plugin; t_plugin_modifier *ptr_modifier; char *argv[2] = { NULL, NULL }; - char *new_msg, *pos, *command; + char *new_msg, *message_modified, *pos, *command; int length_command; argv[0] = server; @@ -792,6 +792,7 @@ plugin_modifier_exec (t_plugin_modifier_type type, } new_msg = NULL; + message_modified = NULL; for (ptr_plugin = weechat_plugins; ptr_plugin; ptr_plugin = ptr_plugin->next_plugin) @@ -825,6 +826,7 @@ plugin_modifier_exec (t_plugin_modifier_type type, if (argv[1] != message) free (argv[1]); argv[1] = new_msg; + message_modified = new_msg; } } } @@ -832,7 +834,7 @@ plugin_modifier_exec (t_plugin_modifier_type type, } } - return new_msg; + return message_modified; } /* |