summaryrefslogtreecommitdiff
path: root/src/plugins/scripts/python
diff options
context:
space:
mode:
authorEmmanuel Bouthenot <kolter@openics.org>2006-04-08 21:37:26 +0000
committerEmmanuel Bouthenot <kolter@openics.org>2006-04-08 21:37:26 +0000
commit1bc997b23854f109e1b4b3644214a7e405e73d11 (patch)
tree6576aacd510b810c60611e0f78bd65287f25c8fa /src/plugins/scripts/python
parent1f03444a6b4597d799add41d77e450e722abc105 (diff)
downloadweechat-1bc997b23854f109e1b4b3644214a7e405e73d11.zip
Fix possible minor bug in getting hostnames in plugins/scripts
Diffstat (limited to 'src/plugins/scripts/python')
-rw-r--r--src/plugins/scripts/python/weechat-python.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/scripts/python/weechat-python.c b/src/plugins/scripts/python/weechat-python.c
index ee089fa9c..4e50072a7 100644
--- a/src/plugins/scripts/python/weechat-python.c
+++ b/src/plugins/scripts/python/weechat-python.c
@@ -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);
}