1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-25 20:36:38 +02:00

Fix possible minor bug in getting hostnames in plugins/scripts

This commit is contained in:
Emmanuel Bouthenot
2006-04-08 21:37:26 +00:00
parent 1f03444a6b
commit 1bc997b238
8 changed files with 12 additions and 8 deletions
+2 -1
View File
@@ -1490,7 +1490,8 @@ weechat_lua_get_nick_info (lua_State *L)
lua_rawset (lua_current_interpreter, -3);
lua_pushstring (lua_current_interpreter, "host");
lua_pushstring (lua_current_interpreter, ptr_nick->host);
lua_pushstring (lua_current_interpreter,
ptr_nick->host ? ptr_nick->host : "");
lua_rawset (lua_current_interpreter, -3);
lua_rawset (lua_current_interpreter, -3);