ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid-8/src/parse.c
(Generate patch)

Comparing ircd-hybrid-8/src/parse.c (file contents):
Revision 1234 by michael, Fri Sep 23 08:15:04 2011 UTC vs.
Revision 1235 by michael, Fri Sep 23 08:55:50 2011 UTC

# Line 814 | Line 814 | void
814   m_unregistered(struct Client *client_p, struct Client *source_p,
815                 int parc, char *parv[])
816   {
817 <  /* bit of a hack.
818 <   * I don't =really= want to waste a bit in a flag
819 <   * number_of_nick_changes is only really valid after the client
820 <   * is fully registered..
821 <   */
822 <  if (client_p->localClient->number_of_nick_changes == 0)
823 <  {
824 <    sendto_one(client_p, ":%s %d * %s :Register first.",
825 <               me.name, ERR_NOTREGISTERED,
826 <               client_p->name[0] ? client_p->name : "*");
827 <    client_p->localClient->number_of_nick_changes++;
828 <  }
817 >  sendto_one(source_p, form_str(ERR_NOTREGISTERED), me.name,
818 >             source_p->name[0] ? source_p->name : "*");
819   }
820  
821   void
822   m_registered(struct Client *client_p, struct Client *source_p,
823               int parc, char *parv[])
824   {
825 <  sendto_one(client_p, form_str(ERR_ALREADYREGISTRED),  
825 >  sendto_one(source_p, form_str(ERR_ALREADYREGISTRED),  
826               me.name, source_p->name);
827   }
828  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines