Class StatsPlugin
In: contrib/plugins/stats.rb
Parent: Plugin
Class: StatsPlugin TopLevel

Author: Michael Brailsford <brailsmt@yahoo.com>

           aka brailsmt

Purpose: Provides the ability to track various tokens that are spoken in a

           channel.

Copyright: 2002 Michael Brailsford. All rights reserved. License: This plugin is licensed under the BSD license. The terms of

           which follow.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
Methods
cleanup    datahash_to_s    handle_listtokens    handle_rmabuser    handle_stats    handle_track    handle_untrack    help    listener    new    parse_token_stats    privmsg    save   
Public Class methods
new()

{{{

Public Instance methods
cleanup()

}}} {{{

help(plugin, topic="")

}}} {{{

privmsg(m)

}}} {{{

save()

}}} {{{

listener(m)

}}} {{{

datahash_to_s(dhash)

}}} The following are helper functions for the plugin {{{

parse_token_stats(stats)
handle_stats(m)

}}} The following are handler methods for dealing with each command from IRC {{{ {{{

handle_track(m)

}}} {{{

handle_untrack(m)

}}} {{{

handle_listtokens(m)

}}} {{{

handle_rmabuser(m)

}}} {{{