diff options
-rw-r--r-- | src/plugins/irc/irc-protocol.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c index 2e27722e3..9e591c189 100644 --- a/src/plugins/irc/irc-protocol.c +++ b/src/plugins/irc/irc-protocol.c @@ -3152,13 +3152,16 @@ IRC_PROTOCOL_CALLBACK(privmsg) { remote_nick = (nick_is_me) ? pos_target : nick; + /* private message received => display it */ + ptr_channel = irc_channel_search (server, remote_nick); + /* CTCP to user */ if (msg_args[0] == '\01') { if (nick_is_me) { irc_protocol_privmsg_display_ctcp_send ( - server, NULL, remote_nick, msg_args); + server, ptr_channel, remote_nick, msg_args); } else { @@ -3168,9 +3171,6 @@ IRC_PROTOCOL_CALLBACK(privmsg) goto end; } - /* private message received => display it */ - ptr_channel = irc_channel_search (server, remote_nick); - if (ptr_channel) { /* rename buffer if open with nick case not matching */ |