Browse Source

m_confprot: Maybe check serbur names case-insensitively lel

Wazakindjes 3 years ago
parent
commit
9358fea20d
1 changed files with 3 additions and 3 deletions
  1. 3 3
      uncommon/m_confprot.c

+ 3 - 3
uncommon/m_confprot.c

@@ -482,7 +482,7 @@ static int server_override(Cmdoverride *ovr, aClient *cptr, aClient *sptr, int p
 
 		// Checkem
 		for(pEntry = protList; pEntry; pEntry = pEntry->next) {
-			if(!strcmp(pEntry->server, parv[3])) {
+			if(!stricmp(pEntry->server, parv[3])) {
 				strncpy(pEntry->hash, parv[4], sizeof(pEntry->hash));
 				strncpy(pEntry->modhash, parv[5], sizeof(pEntry->modhash));
 				break;
@@ -498,7 +498,7 @@ static int server_override(Cmdoverride *ovr, aClient *cptr, aClient *sptr, int p
 	// Continue with: SERVER <server name> <hopcount> :<server description>
 	// Let's allow U:lines, shall we? =]
 	for(uline_ptr = conf_ulines; uline_ptr; uline_ptr = (ConfigItem_ulines *)uline_ptr->next) {
-		if(!strcmp(uline_ptr->servername, parv[1]))
+		if(!stricmp(uline_ptr->servername, parv[1]))
 			return CallCmdoverride(ovr, cptr, sptr, parc, parv); // Run original function yo
 	}
 
@@ -554,7 +554,7 @@ int checkem(Cmdoverride *ovr, aClient *cptr, aClient *sptr, int parc, char *parv
 		else if(!strcmp(pEntry->server, "NETWORK") && !netEntry)
 			netEntry = pEntry;
 
-		else if(!strcmp(pEntry->server, parv[1]) && !leafEntry)
+		else if(!stricmp(pEntry->server, parv[1]) && !leafEntry)
 			leafEntry = pEntry;
 	}