]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/m_rehash.c
Do not use get_oper_name() for a netwide server notice, it may be confusing.
[irc/rqf/shadowircd.git] / modules / m_rehash.c
index 60d5a187adbffc0f086f050cd3400e332f3dd707..8bddf18ef4a14f716d7521ab9677d7384de89ae7 100644 (file)
@@ -28,7 +28,7 @@
 #include "client.h"
 #include "channel.h"
 #include "common.h"
-#include "irc_string.h"
+#include "match.h"
 #include "ircd.h"
 #include "s_serv.h"
 #include "numeric.h"
@@ -88,8 +88,7 @@ rehash_motd(struct Client *source_p)
                             "%s is forcing re-reading of MOTD file",
                             get_oper_name(source_p));
 
-       free_cachefile(user_motd);
-       user_motd = cache_file(MPATH, "ircd.motd", 0);
+       cache_user_motd();
 }
 
 static void
@@ -286,8 +285,8 @@ do_rehash(struct Client *source_p, const char *type)
                for (x = 0; rehash_commands[x].cmd != NULL && rehash_commands[x].handler != NULL;
                     x++)
                {
-                       strlcat(cmdbuf, " ", sizeof(cmdbuf));
-                       strlcat(cmdbuf, rehash_commands[x].cmd, sizeof(cmdbuf));
+                       rb_strlcat(cmdbuf, " ", sizeof(cmdbuf));
+                       rb_strlcat(cmdbuf, rehash_commands[x].cmd, sizeof(cmdbuf));
                }
                sendto_one_notice(source_p, ":rehash one of:%s", cmdbuf);
        }