1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-21 10:26: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
+1 -1
View File
@@ -1231,7 +1231,7 @@ weechat_python_get_nick_info (PyObject *self, PyObject *args)
PyDict_SetItem(nick_hash_member, Py_BuildValue("s", "flags"),
Py_BuildValue("i", ptr_nick->flags));
PyDict_SetItem(nick_hash_member, Py_BuildValue("s", "host"),
Py_BuildValue("s", ptr_nick->host));
Py_BuildValue("s", ptr_nick->host ? ptr_nick->host : ""));
PyDict_SetItem(nick_hash, Py_BuildValue("s", ptr_nick->nick), nick_hash_member);
}