statsincludes/stats_logger.php
author Dan
Tue, 20 Jan 2009 22:08:17 -0500
changeset 52 a8f0e99883d1
parent 20 e2f6e3af9959
permissions -rw-r--r--
Web interface can now update with AJAX
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
20
e2f6e3af9959 Stats now uses MySQL backend
Dan
parents:
diff changeset
     1
<?php
e2f6e3af9959 Stats now uses MySQL backend
Dan
parents:
diff changeset
     2
e2f6e3af9959 Stats now uses MySQL backend
Dan
parents:
diff changeset
     3
eb_hook('event_channel_msg', 'stats_event_privmsg($chan, $message);');
e2f6e3af9959 Stats now uses MySQL backend
Dan
parents:
diff changeset
     4
e2f6e3af9959 Stats now uses MySQL backend
Dan
parents:
diff changeset
     5
function stats_event_privmsg($chan, $message)
e2f6e3af9959 Stats now uses MySQL backend
Dan
parents:
diff changeset
     6
{
e2f6e3af9959 Stats now uses MySQL backend
Dan
parents:
diff changeset
     7
  $channel = $chan->get_channel_name();
e2f6e3af9959 Stats now uses MySQL backend
Dan
parents:
diff changeset
     8
  stats_log_message($channel, $message['nick'], time());
e2f6e3af9959 Stats now uses MySQL backend
Dan
parents:
diff changeset
     9
}
e2f6e3af9959 Stats now uses MySQL backend
Dan
parents:
diff changeset
    10