--- a/modules/ctcp.php Sat Jan 10 14:12:36 2009 -0500
+++ b/modules/ctcp.php Tue Jan 20 22:08:07 2009 -0500
@@ -5,7 +5,7 @@
function handle_ctcp($ctcp, $params, $message)
{
global $irc;
- global $alert_list;
+ global $permissions;
switch($ctcp)
{
case 'PING':
@@ -20,8 +20,9 @@
break;
}
$now = date('r');
- foreach ( $alert_list as $alertme )
+ foreach ( $permissions as $alertme => $perms )
{
- $irc->privmsg($alertme, "Received CTCP \"$ctcp\" from {$message['nick']}, " . $now);
+ if ( check_permissions($alertme, array('context' => 'alert')) )
+ $irc->privmsg($alertme, "Received CTCP \"$ctcp\" from {$message['nick']}, " . $now);
}
}