]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/inspircd.cpp
Added CASEMAPPING and CHARSET to ISUPPORT (005)
[user/henk/code/inspircd.git] / src / inspircd.cpp
index ed1c8fda867b43c57255f6ebd1b7954e48e7f7f0..dbae71a9b1335e9d391d757415bcb9aba918b0eb 100644 (file)
@@ -281,7 +281,8 @@ void InspIRCd::BuildISupport()
         // the neatest way to construct the initial 005 numeric, considering the number of configure constants to go in it...
        std::stringstream v;
        v << "WALLCHOPS MODES=13 CHANTYPES=# PREFIX=(ohv)@%+ MAP SAFELIST MAXCHANNELS=" << MAXCHANS << " MAXBANS=60 NICKLEN=" << NICKMAX;
-       v << " TOPICLEN=" << MAXTOPIC << " KICKLEN=" << MAXKICK << " MAXTARGETS=20 AWAYLEN=" << MAXAWAY << " CHANMODES=ohvb,k,l,psmnti NETWORK=" << Config->Network;
+       v << " CASEMAPPING=rfc1459 STATUSMSG=@+ CHARSET=ascii TOPICLEN=" << MAXTOPIC << " KICKLEN=" << MAXKICK << " MAXTARGETS=20 AWAYLEN=";
+       v << MAXAWAY << " CHANMODES=ohvb,k,l,psmnti NETWORK=" << Config->Network;
        Config->data005 = v.str();
        FOREACH_MOD(I_On005Numeric,On005Numeric(Config->data005));
 }
@@ -337,7 +338,7 @@ bool InspIRCd::LoadModule(const char* filename)
 {
        char modfile[MAXBUF];
 #ifdef STATIC_LINK
-       snprintf(modfile,MAXBUF,"%s",filename);
+       strlcpy(modfile,filename,MAXBUF);
 #else
        snprintf(modfile,MAXBUF,"%s/%s",Config->ModPath,filename);
 #endif
@@ -478,7 +479,7 @@ int InspIRCd::Run()
                }
                
                /* Once a second, do the background processing */
-               if ((TIME != OLDTIME) && ((TIME % 2) == 0))
+               if (TIME != OLDTIME)
                        DoBackgroundUserStuff(TIME);
 
                /* Call the socket engine to wait on the active