]> jfr.im git - solanum.git/blobdiff - modules/m_set.c
irc_string.h -> match.h, irc_string.h; includes changed
[solanum.git] / modules / m_set.c
index 3f336c1edebe3af2c5f73e257a26fde265a13a5f..dfa7a8e456303dc09a1d50088317e7d5040e145e 100644 (file)
@@ -28,8 +28,7 @@
 
 #include "stdinc.h"
 #include "client.h"
-#include "irc_string.h"
-#include "sprintf_irc.h"
+#include "match.h"
 #include "ircd.h"
 #include "numeric.h"
 #include "s_serv.h"
@@ -215,12 +214,12 @@ quote_max(struct Client *source_p, int newval)
 {
        if(newval > 0)
        {
-               if(newval > maxconnections - MAX_BUFFER)\r
-               {\r
-                       sendto_one_notice(source_p,\r
-                                         ":You cannot set MAXCLIENTS to > %d",\r
-                                         maxconnections - MAX_BUFFER);\r
-                       return;\r
+               if(newval > maxconnections - MAX_BUFFER)
+               {
+                       sendto_one_notice(source_p,
+                                         ":You cannot set MAXCLIENTS to > %d",
+                                         maxconnections - MAX_BUFFER);
+                       return;
                }
 
                if(newval < 32)
@@ -257,7 +256,7 @@ quote_operstring(struct Client *source_p, const char *arg)
        }
        else
        {
-               strlcpy(GlobalSetOptions.operstring, arg,
+               rb_strlcpy(GlobalSetOptions.operstring, arg,
                        sizeof(GlobalSetOptions.operstring));
                
                sendto_realops_snomask(SNO_GENERAL, L_ALL,
@@ -276,7 +275,7 @@ quote_adminstring(struct Client *source_p, const char *arg)
        }
        else
        {
-               strlcpy(GlobalSetOptions.adminstring, arg,
+               rb_strlcpy(GlobalSetOptions.adminstring, arg,
                        sizeof(GlobalSetOptions.adminstring));
                
                sendto_realops_snomask(SNO_GENERAL, L_ALL,