]> jfr.im git - irc/quakenet/newserv.git/commitdiff
Sanitize IP addresses/domain names.
authorGunnar Beutner <redacted>
Wed, 14 Aug 2013 22:07:33 +0000 (00:07 +0200)
committerGunnar Beutner <redacted>
Wed, 14 Aug 2013 22:07:33 +0000 (00:07 +0200)
channel/channelhandlers.c
irc/irc.c
trusts/formats.c

index 19faac264090192fead71d7661c409a2cf083643..ed512ad88499c85d60c1d6c68aa90daa256598e4 100644 (file)
@@ -27,7 +27,7 @@ int handleburstmsg(void *source, int cargc, char **cargv) {
   int isnewchan;
   
   /* (we don't see the first 2 params in cargc) */
-  /* AK B #+lod+ 1017561154 +tnk eits ATJWu:o,AiW1a,Ag3lV,AiWnl,AE6oI :%*!@D577A90D.kabel.telenet.be */
+  /* AK B #+lod+ 1017561154 +tnk eits ATJWu:o,AiW1a,Ag3lV,AiWnl,AE6oI :%*!@123.example.net */
   
   if (cargc<2) {
     Error("channel",ERR_WARNING,"Burst message with only %d parameters",cargc);
index d972bba3a8f1ba5852b8762de5546f6bd8f08fc0..e91a6a6056b2114f00b3c68eb9f565651f46e926 100644 (file)
--- a/irc/irc.c
+++ b/irc/irc.c
@@ -67,7 +67,7 @@ void _init() {
   
   /* These values cannot be changed whilst the IRC module is running */
   mynumeric=getcopyconfigitem("irc","servernumeric","A]",2);
-  myserver=getcopyconfigitem("irc","servername","services.lame.net",HOSTLEN);
+  myserver=getcopyconfigitem("irc","servername","services.example.net",HOSTLEN);
   
   mylongnum=numerictolong(mynumeric->content,2);
 
index 5a6914d32d2fd6cc4906a2ac837ae50ebd674c10..35bee39d80179f44f5e12452dc0bb813d8fb44e3 100644 (file)
@@ -137,7 +137,7 @@ int parseth(char *line, trusthost *th, unsigned int *tgid, int oformat) {
   int maxpernode, nodebits;
   char *ip, xbuf[1024], *id;
 
-/* #id,213.230.192.128/26,20,23,1222732944
+/* #id,192.168.2.128/26,20,23,1222732944
        ip                ,cur,max,lastseen */
 
   strlcpy(xbuf, line, sizeof(xbuf));