diff options
author | Emmanuel Bouthenot <kolter@openics.org> | 2006-04-08 21:37:26 +0000 |
---|---|---|
committer | Emmanuel Bouthenot <kolter@openics.org> | 2006-04-08 21:37:26 +0000 |
commit | 1bc997b23854f109e1b4b3644214a7e405e73d11 (patch) | |
tree | 6576aacd510b810c60611e0f78bd65287f25c8fa /src/plugins/scripts/python | |
parent | 1f03444a6b4597d799add41d77e450e722abc105 (diff) | |
download | weechat-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.c | 2 |
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); } |