/[svn]/ircd-hybrid/trunk/modules/core/m_nick.c
ViewVC logotype

Diff of /ircd-hybrid/trunk/modules/core/m_nick.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1837 by michael, Fri Apr 19 19:50:27 2013 UTC revision 1838 by michael, Sun Apr 21 09:36:19 2013 UTC
# Line 217  mr_nick(struct Client *client_p, struct Line 217  mr_nick(struct Client *client_p, struct
217    if (!valid_nickname(nick, 1))    if (!valid_nickname(nick, 1))
218    {    {
219      sendto_one(source_p, form_str(ERR_ERRONEUSNICKNAME), me.name,      sendto_one(source_p, form_str(ERR_ERRONEUSNICKNAME), me.name,
220                 source_p->name[0] ? source_p->name : "*", parv[1]);                 source_p->name[0] ? source_p->name : "*", parv[1],
221                   "Erroneous Nickname");
222      return;      return;
223    }    }
224    
# Line 226  mr_nick(struct Client *client_p, struct Line 227  mr_nick(struct Client *client_p, struct
227    {    {
228      ++conf->count;      ++conf->count;
229      sendto_one(source_p, form_str(ERR_ERRONEUSNICKNAME), me.name,      sendto_one(source_p, form_str(ERR_ERRONEUSNICKNAME), me.name,
230                 source_p->name[0] ? source_p->name : "*", nick);                 source_p->name[0] ? source_p->name : "*", nick, conf->reason);
231      sendto_realops_flags(UMODE_REJ, L_ALL, SEND_NOTICE,      sendto_realops_flags(UMODE_REJ, L_ALL, SEND_NOTICE,
232                           "Forbidding reserved nick [%s] from user %s",                           "Forbidding reserved nick [%s] from user %s",
233                           nick, get_client_name(client_p, HIDE_IP));                           nick, get_client_name(client_p, HIDE_IP));
# Line 283  m_nick(struct Client *client_p, struct C Line 284  m_nick(struct Client *client_p, struct C
284    /* check the nickname is ok */    /* check the nickname is ok */
285    if (!valid_nickname(nick, 1))    if (!valid_nickname(nick, 1))
286    {    {
287      sendto_one(source_p, form_str(ERR_ERRONEUSNICKNAME),      sendto_one(source_p, form_str(ERR_ERRONEUSNICKNAME), me.name,
288                 me.name, source_p->name, nick);                 source_p->name, nick, "Erroneous Nickname");
289      return;      return;
290    }    }
291    
# Line 295  m_nick(struct Client *client_p, struct C Line 296  m_nick(struct Client *client_p, struct C
296    {    {
297      ++conf->count;      ++conf->count;
298      sendto_one(source_p, form_str(ERR_ERRONEUSNICKNAME),      sendto_one(source_p, form_str(ERR_ERRONEUSNICKNAME),
299                 me.name, source_p->name, nick);                 me.name, source_p->name, nick, conf->reason);
300      sendto_realops_flags(UMODE_REJ, L_ALL, SEND_NOTICE,      sendto_realops_flags(UMODE_REJ, L_ALL, SEND_NOTICE,
301                           "Forbidding reserved nick [%s] from user %s",                           "Forbidding reserved nick [%s] from user %s",
302                           nick, get_client_name(client_p, HIDE_IP));                           nick, get_client_name(client_p, HIDE_IP));

Legend:
Removed from v.1837  
changed lines
  Added in v.1838

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28