mirror of
https://github.com/anope/anope.git
synced 2026-07-10 08:03:13 +02:00
BUILD : 1.7.11 (911) BUGS : NOTES : Added a check to os_stats to see if we actually have a param to avoid segs
git-svn-id: svn://svn.anope.org/anope/trunk@911 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@657 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
parent
33191186fe
commit
b1dc23a455
+1
-1
@@ -233,7 +233,7 @@ int do_stats(User * u)
|
||||
}
|
||||
}
|
||||
|
||||
if ((stricmp(extra, "MEMORY") != 0) && (stricmp(extra, "UPLINK") != 0)) {
|
||||
if (!extra || ((stricmp(extra, "MEMORY") != 0) && (stricmp(extra, "UPLINK") != 0))) {
|
||||
notice_lang(s_OperServ, u, OPER_STATS_CURRENT_USERS, usercnt, opcnt);
|
||||
tm = localtime(&maxusertime);
|
||||
strftime_lang(timebuf, sizeof(timebuf), u, STRFTIME_DATE_TIME_FORMAT,
|
||||
|
||||
Reference in New Issue
Block a user