X-Git-Url: https://jfr.im/git/solanum.git/blobdiff_plain/212380e3f42f585dc1ea927402252eb943f91f7b..8bd5767b953efd089e0467b02f897f77581e589d:/modules/m_signon.c diff --git a/modules/m_signon.c b/modules/m_signon.c index a4340be9..4d242daf 100644 --- a/modules/m_signon.c +++ b/modules/m_signon.c @@ -31,7 +31,6 @@ #include "stdinc.h" -#include "tools.h" #include "send.h" #include "channel.h" #include "client.h" @@ -39,7 +38,6 @@ #include "config.h" #include "ircd.h" #include "numeric.h" -#include "memory.h" #include "s_conf.h" #include "s_serv.h" #include "hash.h" @@ -257,8 +255,12 @@ me_svslogin(struct Client *client_p, struct Client *source_p, } else { - send_signon(NULL, target_p, nick, user, host, CurrentTime, login); - comm_note(target_p->localClient->fd, "Nick: %s", target_p->name); + char note[NICKLEN + 10]; + + send_signon(NULL, target_p, nick, user, host, rb_current_time(), login); + + rb_snprintf(note, NICKLEN + 10, "Nick: %s", target_p->name); + rb_note(target_p->localClient->F, note); } return 0; @@ -274,7 +276,7 @@ ms_signon(struct Client *client_p, struct Client *source_p, if(!clean_nick(parv[1])) { - ServerStats->is_kill++; + ServerStats.is_kill++; sendto_realops_snomask(SNO_DEBUG, L_ALL, "Bad Nick from SIGNON: %s From: %s(via %s)", parv[1], source_p->servptr->name, client_p->name); @@ -292,7 +294,7 @@ ms_signon(struct Client *client_p, struct Client *source_p, if(!clean_username(parv[2]) || !clean_host(parv[3])) { - ServerStats->is_kill++; + ServerStats.is_kill++; sendto_realops_snomask(SNO_DEBUG, L_ALL, "Bad user@host from SIGNON: %s@%s From: %s(via %s)", parv[2], parv[3], source_p->servptr->name, client_p->name); @@ -336,13 +338,13 @@ ms_signon(struct Client *client_p, struct Client *source_p, source_p->name, target_p->name, target_p->from->name, client_p->name); - ServerStats->is_kill++; + ServerStats.is_kill++; sendto_one_numeric(target_p, ERR_NICKCOLLISION, form_str(ERR_NICKCOLLISION), target_p->name); kill_client_serv_butone(NULL, source_p, "%s (Nick change collision)", me.name); - ServerStats->is_kill++; + ServerStats.is_kill++; kill_client_serv_butone(NULL, target_p, "%s (Nick change collision)", me.name); @@ -371,7 +373,7 @@ ms_signon(struct Client *client_p, struct Client *source_p, source_p->name, target_p->name, target_p->from->name, client_p->name); - ServerStats->is_kill++; + ServerStats.is_kill++; sendto_one_numeric(target_p, ERR_NICKCOLLISION, form_str(ERR_NICKCOLLISION), target_p->name); @@ -408,7 +410,7 @@ ms_signon(struct Client *client_p, struct Client *source_p, kill_client_serv_butone(client_p, target_p, "%s (Nick collision)", me.name); - ServerStats->is_kill++; + ServerStats.is_kill++; target_p->flags |= FLAGS_KILLED; (void) exit_client(client_p, target_p, &me, "Nick collision");