statsincludes/stats_frontend.php
changeset 51 508400fc5282
parent 20 e2f6e3af9959
--- a/statsincludes/stats_frontend.php	Sat Jan 10 14:12:36 2009 -0500
+++ b/statsincludes/stats_frontend.php	Tue Jan 20 22:08:07 2009 -0500
@@ -15,7 +15,7 @@
   if ( empty($targetuser) )
     $targetuser = $message['nick'];
   
-  if ( $targetuser != $message['nick'] && !in_array($message['nick'], $privileged_list) )
+  if ( $targetuser != $message['nick'] && !check_permissions($message['nick'], array('context' => 'deletestats')) )
   {
     $irc->privmsg($message['nick'], "Sorry, you need to be a moderator to delete statistics for users other than yourself.");
     return true;