diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2007-03-06 16:42:39 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2007-03-06 16:42:39 +0000 |
commit | 7b9ef6b56efffef8e9ae59e24b8fb58a70caa5d0 (patch) | |
tree | bb4773bfc66e924513670a019440ecaff4823a4b /src/plugins/scripts/lua | |
parent | 00dd81761fe3b38d9c4ee1d35e6e5a42d84e1215 (diff) | |
download | weechat-7b9ef6b56efffef8e9ae59e24b8fb58a70caa5d0.zip |
Added new return code in plugin API to force highlight (for message handlers only)
Diffstat (limited to 'src/plugins/scripts/lua')
-rw-r--r-- | src/plugins/scripts/lua/weechat-lua.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/plugins/scripts/lua/weechat-lua.c b/src/plugins/scripts/lua/weechat-lua.c index 969e04ff8..384e930e6 100644 --- a/src/plugins/scripts/lua/weechat-lua.c +++ b/src/plugins/scripts/lua/weechat-lua.c @@ -2228,6 +2228,16 @@ weechat_lua_constant_plugin_rc_ok_ignore_all (lua_State *L) return 1; } +static int +weechat_lua_constant_plugin_rc_ok_with_highlight (lua_State *L) +{ + /* make C compiler happy */ + (void) L; + + lua_pushnumber (lua_current_interpreter, PLUGIN_RC_OK_WITH_HIGHLIGHT); + return 1; +} + /* * Lua subroutines */ @@ -2272,6 +2282,7 @@ const struct luaL_reg weechat_lua_funcs[] = { { "PLUGIN_RC_OK_IGNORE_WEECHAT", weechat_lua_constant_plugin_rc_ok_ignore_weechat }, { "PLUGIN_RC_OK_IGNORE_PLUGINS", weechat_lua_constant_plugin_rc_ok_ignore_plugins }, { "PLUGIN_RC_OK_IGNORE_ALL", weechat_lua_constant_plugin_rc_ok_ignore_all }, + { "PLUGIN_RC_OK_WITH_HIGHLIGHT", weechat_lua_constant_plugin_rc_ok_with_highlight }, { NULL, NULL } }; |