Skip to content
Permalink
Browse files

Core(fix): correct nick generation

  • Loading branch information
SilverRainZ committed Nov 13, 2019
1 parent 7b7b930 commit 39ced08d782ed2d42c8c67bb3c2fcc913e8f7f77
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/app_irc_event.c
@@ -1378,13 +1378,13 @@ static void irc_event_numeric(SircSession *sirc, int event,
if (!srv->registered){
char *new_nick;

if (strlen(nick) - strlen(srv->user->nick) >= 2) {
if (strlen(nick) - strlen(srv->cfg->user->nick) <= 2) {
// Try new nick with a trailing underline('_')
new_nick = g_strdup_printf("%s_", nick);
} else {
// Rewind to original nickname when there are too much
// trailing underlines
new_nick = g_strdup(srv->user->nick);
new_nick = g_strdup(srv->cfg->user->nick);
}

// FIXME: ircd-seven will truncate the nick without

0 comments on commit 39ced08

Please sign in to comment.
You can’t perform that action at this time.