msg_setname(client);
int cookie = sendbuf_visible_caps(client, CAP_SETNAME, 0);
sendbuf_monitor(client->key, cookie, CAP_SETNAME|CAP_EXTENDEDMONITOR, 0);
+ if (client->cookie != cookie)
+ sendbuf(client);
#ifdef HAS_LUA
} else if(strcmp(command, "LUA") == 0) {
if (argc < 1)
msg_chghost(client, newusername, newhostname);
int cookie = sendbuf_visible_caps(client, CAP_CHGHOST, 0);
sendbuf_monitor(client->key, cookie, CAP_CHGHOST|CAP_EXTENDEDMONITOR, 0);
+ if (client->cookie != cookie)
+ sendbuf(client);
int changedacc = client->username[0] != '~' || newusername[0] != '~';
free(client->username);
client->username = mystrdup(newusername);
msg_account(client);
int cookie = sendbuf_visible_caps(client, CAP_ACCOUNTNOTIFY, 0);
sendbuf_monitor(client->key, cookie, CAP_ACCOUNTNOTIFY|CAP_EXTENDEDMONITOR, 0);
+ if (client->cookie != cookie)
+ sendbuf(client);
}
}
void channel_sendtopic(struct client_data *client, struct channel *chan, int joining)