degesch: make CHGHOST update our own userhost info
I've almost forgotten that we use this for message spliting.
This commit is contained in:
parent
c1d69e3630
commit
6f62b9c0c7
@ -6688,12 +6688,14 @@ irc_handle_chghost (struct server *s, const struct irc_message *msg)
|
|||||||
if (!user)
|
if (!user)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// We don't remember the userhost part, we only log the change
|
|
||||||
char *new_prefix = xstrdup_printf ("%s!%s@%s", user->nickname,
|
char *new_prefix = xstrdup_printf ("%s!%s@%s", user->nickname,
|
||||||
msg->params.vector[0], msg->params.vector[1]);
|
msg->params.vector[0], msg->params.vector[1]);
|
||||||
|
|
||||||
if (irc_is_this_us (s, msg->prefix))
|
if (irc_is_this_us (s, msg->prefix))
|
||||||
{
|
{
|
||||||
|
cstr_set (&s->irc_user_host, xstrdup_printf ("%s@%s",
|
||||||
|
msg->params.vector[0], msg->params.vector[1]));
|
||||||
|
|
||||||
log_chghost_self (s, s->buffer, new_prefix);
|
log_chghost_self (s, s->buffer, new_prefix);
|
||||||
|
|
||||||
// Log a message in all open buffers on this server
|
// Log a message in all open buffers on this server
|
||||||
|
Loading…
Reference in New Issue
Block a user