sendbuf_monitor(client->key, cookie, CAP_CHGHOST|CAP_EXTENDEDMONITOR, 0);
if (client->cookie != cookie)
sendbuf(client);
+ rpl_visiblehost(client), sendbuf(client);
int changedacc = client->username[0] != '~' || newusername[0] != '~';
free(client->username);
client->username = mystrdup(newusername);
buf[24] = '\0';
copy_strf(&databuf, ":%s 391 %s %s :%s\r\n", hostname, client->nick, ts, buf);
}
+void rpl_visiblehost(struct client_data *client) // 396
+{
+ copy_strf(&databuf, ":%s 396 %s %s@%s :is now you visible host\r\n", hostname, client->nick, client->username, client->hostname);
+}
#if 0
void err_unknownerror(struct client_data *client, const char *command, const char *msg) // 400
{
void rpl_youreoper(struct client_data *client); // 381
// 382 RPL_REHASHING
void rpl_time(struct client_data *client, time_t ts); // 391
+void rpl_visiblehost(struct client_data *client); // 396
void err_unknownerror(struct client_data *client, const char *command, const char *msg); // 400
void err_nosuchnick(struct client_data *client, const char *nick); // 401
void err_nosuchserver(struct client_data *client, const char *server); // 402