summaryrefslogtreecommitdiff
path: root/src/plugins/scripts/python
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2009-02-17 19:23:16 +0100
committerSebastien Helleu <flashcode@flashtux.org>2009-02-17 19:23:16 +0100
commitb5f27d3fead4740099054f82e9a246ebd8a6ae9d (patch)
tree4f8a31924c4fc4b3cda8af53ba9d06809d23bfb4 /src/plugins/scripts/python
parenteaf3319ed342d008893c613817cc5dc13449098c (diff)
downloadweechat-b5f27d3fead4740099054f82e9a246ebd8a6ae9d.zip
Use string instead of char for prefixes in nicklist
Diffstat (limited to 'src/plugins/scripts/python')
-rw-r--r--src/plugins/scripts/python/weechat-python-api.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/plugins/scripts/python/weechat-python-api.c b/src/plugins/scripts/python/weechat-python-api.c
index 95807c41a..fe77270b4 100644
--- a/src/plugins/scripts/python/weechat-python-api.c
+++ b/src/plugins/scripts/python/weechat-python-api.c
@@ -4063,7 +4063,6 @@ static PyObject *
weechat_python_api_nicklist_add_nick (PyObject *self, PyObject *args)
{
char *buffer, *group, *name, *color, *prefix, *prefix_color, *result;
- char char_prefix;
int visible;
PyObject *object;
@@ -4091,16 +4090,11 @@ weechat_python_api_nicklist_add_nick (PyObject *self, PyObject *args)
PYTHON_RETURN_EMPTY;
}
- if (prefix && prefix[0])
- char_prefix = prefix[0];
- else
- char_prefix = ' ';
-
result = script_ptr2str (weechat_nicklist_add_nick (script_str2ptr (buffer),
script_str2ptr (group),
name,
color,
- char_prefix,
+ prefix,
prefix_color,
visible));