summaryrefslogtreecommitdiff
path: root/src/plugins/scripts/lua/weechat-lua.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-10-31 09:55:15 +0100
committerSebastien Helleu <flashcode@flashtux.org>2011-10-31 09:55:15 +0100
commitb9297c465967f69e291404de99bd7391ecb8e8ae (patch)
treeb65f9007c6b3a61e11a293d838ebdb0eb9dde32b /src/plugins/scripts/lua/weechat-lua.c
parent699e0e2ee170fe892eb73203e0a7b1f59daa6aef (diff)
downloadweechat-b9297c465967f69e291404de99bd7391ecb8e8ae.zip
lua: fix typo in comment
Diffstat (limited to 'src/plugins/scripts/lua/weechat-lua.c')
-rw-r--r--src/plugins/scripts/lua/weechat-lua.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/scripts/lua/weechat-lua.c b/src/plugins/scripts/lua/weechat-lua.c
index a02f49c53..1179783f7 100644
--- a/src/plugins/scripts/lua/weechat-lua.c
+++ b/src/plugins/scripts/lua/weechat-lua.c
@@ -326,10 +326,12 @@ weechat_lua_load (const char *filename)
lua_tostring (lua_current_interpreter, -1));
lua_close (lua_current_interpreter);
fclose (fp);
- /* if script was registered, removing from list */
+
+ /* if script was registered, remove it from list */
if (lua_current_script)
script_remove (weechat_lua_plugin, &lua_scripts, &last_lua_script,
lua_current_script);
+
return 0;
}
fclose (fp);