1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-03 16:23:14 +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
@@ -1281,7 +1281,8 @@ static XS (XS_weechat_get_nick_info)
HV *nick_hash_member = (HV *) sv_2mortal((SV *) newHV());
hv_store (nick_hash_member, "flags", 5, newSViv (ptr_nick->flags), 0);
hv_store (nick_hash_member, "host", 4, newSVpv (ptr_nick->host, 0), 0);
hv_store (nick_hash_member, "host", 4, newSVpv (
ptr_nick->host ? ptr_nick->host : "", 0), 0);
hv_store (nick_hash, ptr_nick->nick, strlen(ptr_nick->nick), newRV_inc((SV *) nick_hash_member), 0);
}