var util = require('util'),
EventBinder = require('./eventbinder.js'),
- _ = require('lodash');
+ _ = require('lodash'),
+ Stats = require('../stats.js');
var IrcServer = function (irc_connection) {
this.irc_connection = irc_connection;
this.list_buffer = [];
this.motd_buffer = '';
+ // Date when registeration with the IRCd had completed
this.registered = false;
this.irc_events = {
function onConnect(event) {
- this.registered = true;
+ Stats.incr('irc.connection.registered');
+ this.registered = new Date();
this.irc_connection.clientEvent('connect', {
nick: event.nick