degesch: make sure "You are now known..." works

This commit is contained in:
Přemysl Eric Janouch 2015-04-27 22:59:23 +02:00
parent 412cad9328
commit 0cb50addbe

View File

@ -2640,8 +2640,11 @@ irc_handle_nick (struct app_context *ctx, const struct irc_message *msg)
str_map_set (&ctx->irc_buffer_map, new_nickname, pm_buffer); str_map_set (&ctx->irc_buffer_map, new_nickname, pm_buffer);
str_map_set (&ctx->irc_buffer_map, user->nickname, NULL); str_map_set (&ctx->irc_buffer_map, user->nickname, NULL);
char *who = irc_is_this_us (ctx, msg->prefix)
? irc_to_utf8 (ctx, msg->prefix)
: NULL;
buffer_send (ctx, pm_buffer, BUFFER_LINE_NICK, 0, buffer_send (ctx, pm_buffer, BUFFER_LINE_NICK, 0,
.who = irc_to_utf8 (ctx, msg->prefix), .who = who,
.object = irc_to_utf8 (ctx, new_nickname)); .object = irc_to_utf8 (ctx, new_nickname));
// TODO: use a full weechat-style buffer name here // TODO: use a full weechat-style buffer name here
buffer_rename (ctx, pm_buffer, new_nickname); buffer_rename (ctx, pm_buffer, new_nickname);