Skip to content
Browse files

protocol/ngircd: Process umodes in burst.

  • Loading branch information...
1 parent 8784e72 commit 72945dfaf77bf69ad012fc06da4729ecd7d1f22a @jillest jillest committed Dec 30, 2012
Showing with 7 additions and 2 deletions.
  1. +7 −2 modules/protocol/ngircd.c
View
9 modules/protocol/ngircd.c
@@ -382,15 +382,20 @@ static void m_part(sourceinfo_t *si, int parc, char *parv[])
static void m_nick(sourceinfo_t *si, int parc, char *parv[])
{
+ user_t *u;
bool realchange;
if (parc == 7)
{
slog(LG_DEBUG, "m_nick(): new user on `%s': %s", si->s->name, parv[0]);
- user_add(parv[0], parv[2], parv[3], NULL, NULL, NULL, parv[6], si->s, CURRTIME);
+ u = user_add(parv[0], parv[2], parv[3], NULL, NULL, NULL, parv[6], si->s, CURRTIME);
+ if (u == NULL)
+ return;
+
+ user_mode(u, parv[5]);
- handle_nickchange(user_find(parv[0]));
+ handle_nickchange(u);
}
/* if it's only 2 then it's a nickname change */

0 comments on commit 72945df

Please sign in to comment.
Something went wrong with that request. Please try again.