]> jfr.im git - irc/rqf/shadowircd.git/commitdiff
make s_user.c build.
authorWilliam Pitcock <redacted>
Wed, 2 Apr 2008 01:36:50 +0000 (20:36 -0500)
committerWilliam Pitcock <redacted>
Wed, 2 Apr 2008 01:36:50 +0000 (20:36 -0500)
include/cache.h
src/s_user.c

index 059c5838b41465f2455b15242993b4b64ba463ed..b303f34f99b626a3d77e1cf8121d162ceab1aca3 100644 (file)
@@ -42,10 +42,11 @@ void free_cachefile(struct cachefile *);
 void load_help(void);\r
 \r
 void send_user_motd(struct Client *);\r
+void send_oper_motd(struct Client *);\r
 void cache_user_motd(void);\r
 \r
-struct Dictionary;
-extern struct Dictionary *help_dict_oper;
+struct Dictionary;\r
+extern struct Dictionary *help_dict_oper;\r
 extern struct Dictionary *help_dict_user;\r
-#endif
-
+#endif\r
+\r
index a9537d0554fc6df97582931b89b8a6fc765f3f2c..2428c856a71992d19ecd931f7c765e7d5c6db7b2 100644 (file)
@@ -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))