1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-10 07:43:12 +02:00

Get rid of stricmp/strnicmp (use strcasecmp/strncasecmp)

This commit is contained in:
Bram Matthys
2019-09-09 16:13:32 +02:00
parent 9636f83a2b
commit 7d4b7c2fed
26 changed files with 76 additions and 83 deletions
+2 -2
View File
@@ -56,13 +56,13 @@ CMD_FUNC(m_tsctl)
return 0;
}
if (MyClient(sptr) && (!parv[1] || stricmp(parv[1], "alltime")))
if (MyClient(sptr) && (!parv[1] || strcasecmp(parv[1], "alltime")))
{
sendnotice(sptr, "/TSCTL now shows the time on all servers. You can now longer MODIFY the time.");
parv[1] = "alltime";
}
if (parv[1] && !stricmp(parv[1], "alltime"))
if (parv[1] && !strcasecmp(parv[1], "alltime"))
{
sendnotice(sptr, "*** Server=%s TStime=%lld",
me.name, (long long)TStime());