Skip to content

Commit a02a6fa

Browse files
committed
comment here too why not
1 parent abc23d5 commit a02a6fa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/core/m_nick.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -690,6 +690,7 @@ change_local_nick(struct Client *client_p, struct Client *source_p,
690690
call_hook(h_local_nick_change_approve, &hook_approve);
691691

692692
if (!hook_approve.approved) {
693+
/* send the same error they'd get if this nick was RESV */
693694
sendto_one(source_p, form_str(ERR_ERRONEUSNICKNAME),
694695
me.name, EmptyString(source_p->name) ? "*" : source_p->name, nick);
695696
return;

0 commit comments

Comments
 (0)