From 9603bae003dbb8c9e407e73d602c44dc371860e5 Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Mon, 22 Jun 2015 22:34:18 +0200
Subject: degesch: fix logging of NICK in PM buffers
---
degesch.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/degesch.c b/degesch.c
index b065390..3c560be 100644
--- a/degesch.c
+++ b/degesch.c
@@ -4408,8 +4408,8 @@ irc_handle_nick (struct server *s, const struct irc_message *msg)
if (pm_buffer)
{
char *who = irc_is_this_us (s, msg->prefix)
- ? irc_to_utf8 (s->ctx, msg->prefix)
- : NULL;
+ ? NULL
+ : irc_to_utf8 (s->ctx, msg->prefix);
buffer_send (s->ctx, pm_buffer, BUFFER_LINE_NICK, 0,
.who = who,
.object = irc_to_utf8 (s->ctx, new_nickname));
--
cgit v1.2.3-70-g09d2