Skip to content

Commit

Permalink
m_services: delete nick delay on RSFNC
Browse files Browse the repository at this point in the history
  • Loading branch information
dwfreed committed Jul 16, 2021
1 parent 883ac66 commit 52f1947
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions modules/m_services.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ me_rsfnc(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source
struct Client *target_p;
struct Client *exist_p;
time_t newts, curts;
struct nd_entry *nd;
char note[NAMELEN + 10];

if(!(source_p->flags & FLAGS_SERVICE))
Expand Down Expand Up @@ -245,6 +246,12 @@ me_rsfnc(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source
use_id(target_p), parv[2], (long) target_p->tsinfo);

del_from_client_hash(target_p->name, target_p);

/* invalidate nick delay because we're forcing this nick to be used */
nd = rb_dictionary_retrieve(nd_dict, parv[2]);
if (nd != NULL)
free_nd_entry(nd);

rb_strlcpy(target_p->name, parv[2], NICKLEN);
add_to_client_hash(target_p->name, target_p);

Expand Down

0 comments on commit 52f1947

Please sign in to comment.