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:
+2
-2
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user