summaryrefslogtreecommitdiff
path: root/src/plugins/irc
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2010-02-06 12:21:52 +0100
committerSebastien Helleu <flashcode@flashtux.org>2010-02-06 12:21:52 +0100
commit74d148d056d0a3913f22ad1aa584ca0336d64825 (patch)
tree5e0efc8dbb13ca369d1cde3a704d9df30e02423e /src/plugins/irc
parentdf1a6b0c3ddbc1dd181de69b2e5a18e0e5ae876c (diff)
downloadweechat-74d148d056d0a3913f22ad1aa584ca0336d64825.zip
Display nick prefix in input_prompt only if channel is type "channel" (not private)
Diffstat (limited to 'src/plugins/irc')
-rw-r--r--src/plugins/irc/irc-bar-item.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/irc/irc-bar-item.c b/src/plugins/irc/irc-bar-item.c
index 5025f2a44..33220a20f 100644
--- a/src/plugins/irc/irc-bar-item.c
+++ b/src/plugins/irc/irc-bar-item.c
@@ -424,7 +424,8 @@ irc_bar_item_input_prompt (void *data, struct t_gui_bar_item *item,
/* build prefix */
str_prefix[0] = '\0';
if (weechat_config_boolean (irc_config_look_item_nick_prefix)
- && channel)
+ && channel
+ && (channel->type == IRC_CHANNEL_TYPE_CHANNEL))
{
ptr_nick = irc_nick_search (channel, server->nick);
if (ptr_nick)