make s_user.c build.
This commit is contained in:
parent
c626889a84
commit
fa94d8fb93
2 changed files with 10 additions and 5 deletions
|
@ -42,10 +42,11 @@ void free_cachefile(struct cachefile *);
|
|||
void load_help(void);
|
||||
|
||||
void send_user_motd(struct Client *);
|
||||
void send_oper_motd(struct Client *);
|
||||
void cache_user_motd(void);
|
||||
|
||||
struct Dictionary;
|
||||
extern struct Dictionary *help_dict_oper;
|
||||
struct Dictionary;
|
||||
extern struct Dictionary *help_dict_oper;
|
||||
extern struct Dictionary *help_dict_user;
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
@ -290,10 +290,14 @@ register_local_user(struct Client *client_p, struct Client *source_p, const char
|
|||
/* Apply nick override */
|
||||
if(*source_p->preClient->spoofnick)
|
||||
{
|
||||
char note[NICKLEN + 10];
|
||||
|
||||
del_from_client_hash(source_p->name, source_p);
|
||||
strlcpy(source_p->name, source_p->preClient->spoofnick, NICKLEN + 1);
|
||||
add_to_client_hash(source_p->name, source_p);
|
||||
rb_note(source_p->localClient->F->fd, "Nick: %s", source_p->name);
|
||||
|
||||
rb_snprintf(note, NICKLEN + 10, "Nick: %s", source_p->name);
|
||||
rb_note(source_p->localClient->F, note);
|
||||
}
|
||||
|
||||
if(!valid_hostname(source_p->host))
|
||||
|
|
Loading…
Reference in a new issue