make s_user.c build.
This commit is contained in:
parent
411559c8be
commit
738971829f
|
@ -42,10 +42,11 @@ void free_cachefile(struct cachefile *);
|
||||||
void load_help(void);
|
void load_help(void);
|
||||||
|
|
||||||
void send_user_motd(struct Client *);
|
void send_user_motd(struct Client *);
|
||||||
|
void send_oper_motd(struct Client *);
|
||||||
void cache_user_motd(void);
|
void cache_user_motd(void);
|
||||||
|
|
||||||
struct Dictionary;
|
struct Dictionary;
|
||||||
extern struct Dictionary *help_dict_oper;
|
extern struct Dictionary *help_dict_oper;
|
||||||
extern struct Dictionary *help_dict_user;
|
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 */
|
/* Apply nick override */
|
||||||
if(*source_p->preClient->spoofnick)
|
if(*source_p->preClient->spoofnick)
|
||||||
{
|
{
|
||||||
|
char note[NICKLEN + 10];
|
||||||
|
|
||||||
del_from_client_hash(source_p->name, source_p);
|
del_from_client_hash(source_p->name, source_p);
|
||||||
strlcpy(source_p->name, source_p->preClient->spoofnick, NICKLEN + 1);
|
strlcpy(source_p->name, source_p->preClient->spoofnick, NICKLEN + 1);
|
||||||
add_to_client_hash(source_p->name, source_p);
|
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))
|
if(!valid_hostname(source_p->host))
|
||||||
|
|
Loading…
Reference in New Issue