1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303
|
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<html><head>
<title>Class: StatsPlugin</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel=StyleSheet href=".././rdoc-style.css" type="text/css" media="screen" />
<script type="text/javascript" language="JavaScript">
<!--
function popCode(url) {
window.open(url, "Code",
"resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
}
//-->
</script>
</head>
<body bgcolor="white">
<table summary="Information on class" width="100%" border="0" cellspacing="0">
<tr class="title-row">
<td class="big-title-font">
<sup><font color="aqua">Class</font></sup> StatsPlugin
</td>
<td align="right">
<table summary="layout" cellspacing="0" cellpadding="2">
<tr valign="top">
<td class="small-title-font">In:</td>
<td class="small-title-font">
<a href="../files/contrib/plugins/stats_rb.html" class="aqua">
contrib/plugins/stats.rb
</a>
<br />
</td>
</tr>
<tr>
<td class="small-title-font">Parent:</td>
<td class="small-title-font">
Plugin
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- banner header -->
<table summary="Diagram of classes and modules" width="100%">
<tr><td align="center">
<map name="map">
<area shape="RECT" coords="68,177,143,129" href="StatsPlugin.html" alt="Class: StatsPlugin">
</map>
<img src="../dot/f_1.png" usemap="#map" border=0 alt="TopLevel">
</td></tr></table>
<div class="description"><p>
Author: Michael Brailsford <brailsmt@yahoo.com>
</p>
<pre>
aka brailsmt
</pre>
<p>
Purpose: Provides the ability to track various tokens that are spoken in a
</p>
<pre>
channel.
</pre>
<p>
Copyright: 2002 Michael Brailsford. All rights reserved. License: This
plugin is licensed under the BSD license. The terms of
</p>
<pre>
which follow.
</pre>
<p>
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
</p>
<ol>
<li>Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
</li>
<li>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.
</li>
</ol>
</div>
<table summary="Methods" cellpadding="5" width="100%">
<tr><td class="tablesubtitle">Methods</td></tr>
</table>
<div class="name-list">
<a href="#M000003">cleanup</a>
<a href="#M000008">datahash_to_s</a>
<a href="#M000013">handle_listtokens</a>
<a href="#M000014">handle_rmabuser</a>
<a href="#M000010">handle_stats</a>
<a href="#M000011">handle_track</a>
<a href="#M000012">handle_untrack</a>
<a href="#M000004">help</a>
<a href="#M000007">listen</a>
<a href="#M000002">new</a>
<a href="#M000009">parse_token_stats</a>
<a href="#M000005">privmsg</a>
<a href="#M000006">save</a>
</div>
<table summary="Method list" cellpadding="5" width="100%">
<tr><td class="tablesubtitle">Public Class methods</td></tr>
</table>
<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
<tr><td class="methodtitle">
<a name="M000002"></a>
<a href="StatsPlugin.src/M000002.html" target="Code" class="methodtitle"
onClick="popCode('StatsPlugin.src/M000002.html');return false;">
<b>new</b>()
</a>
</td></tr>
</table>
<div class="description">
<p>
{{{
</p>
</div>
<table summary="Method list" cellpadding="5" width="100%">
<tr><td class="tablesubtitle">Public Instance methods</td></tr>
</table>
<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
<tr><td class="methodtitle">
<a name="M000003"></a>
<a href="StatsPlugin.src/M000003.html" target="Code" class="methodtitle"
onClick="popCode('StatsPlugin.src/M000003.html');return false;">
<b>cleanup</b>()
</a>
</td></tr>
</table>
<div class="description">
<p>
}}} {{{
</p>
</div>
<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
<tr><td class="methodtitle">
<a name="M000004"></a>
<a href="StatsPlugin.src/M000004.html" target="Code" class="methodtitle"
onClick="popCode('StatsPlugin.src/M000004.html');return false;">
<b>help</b>(plugin, topic="")
</a>
</td></tr>
</table>
<div class="description">
<p>
}}} {{{
</p>
</div>
<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
<tr><td class="methodtitle">
<a name="M000005"></a>
<a href="StatsPlugin.src/M000005.html" target="Code" class="methodtitle"
onClick="popCode('StatsPlugin.src/M000005.html');return false;">
<b>privmsg</b>(m)
</a>
</td></tr>
</table>
<div class="description">
<p>
}}} {{{
</p>
</div>
<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
<tr><td class="methodtitle">
<a name="M000006"></a>
<a href="StatsPlugin.src/M000006.html" target="Code" class="methodtitle"
onClick="popCode('StatsPlugin.src/M000006.html');return false;">
<b>save</b>()
</a>
</td></tr>
</table>
<div class="description">
<p>
}}} {{{
</p>
</div>
<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
<tr><td class="methodtitle">
<a name="M000007"></a>
<a href="StatsPlugin.src/M000007.html" target="Code" class="methodtitle"
onClick="popCode('StatsPlugin.src/M000007.html');return false;">
<b>listen</b>(m)
</a>
</td></tr>
</table>
<div class="description">
<p>
}}} {{{
</p>
</div>
<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
<tr><td class="methodtitle">
<a name="M000008"></a>
<a href="StatsPlugin.src/M000008.html" target="Code" class="methodtitle"
onClick="popCode('StatsPlugin.src/M000008.html');return false;">
<b>datahash_to_s</b>(dhash)
</a>
</td></tr>
</table>
<div class="description">
<p>
}}} The following are helper functions for the plugin {{{
</p>
</div>
<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
<tr><td class="methodtitle">
<a name="M000009"></a>
<a href="StatsPlugin.src/M000009.html" target="Code" class="methodtitle"
onClick="popCode('StatsPlugin.src/M000009.html');return false;">
<b>parse_token_stats</b>(stats)
</a>
</td></tr>
</table>
<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
<tr><td class="methodtitle">
<a name="M000010"></a>
<a href="StatsPlugin.src/M000010.html" target="Code" class="methodtitle"
onClick="popCode('StatsPlugin.src/M000010.html');return false;">
<b>handle_stats</b>(m)
</a>
</td></tr>
</table>
<div class="description">
<p>
}}} The following are handler methods for dealing with each command from
IRC {{{ {{{
</p>
</div>
<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
<tr><td class="methodtitle">
<a name="M000011"></a>
<a href="StatsPlugin.src/M000011.html" target="Code" class="methodtitle"
onClick="popCode('StatsPlugin.src/M000011.html');return false;">
<b>handle_track</b>(m)
</a>
</td></tr>
</table>
<div class="description">
<p>
}}} {{{
</p>
</div>
<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
<tr><td class="methodtitle">
<a name="M000012"></a>
<a href="StatsPlugin.src/M000012.html" target="Code" class="methodtitle"
onClick="popCode('StatsPlugin.src/M000012.html');return false;">
<b>handle_untrack</b>(m)
</a>
</td></tr>
</table>
<div class="description">
<p>
}}} {{{
</p>
</div>
<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
<tr><td class="methodtitle">
<a name="M000013"></a>
<a href="StatsPlugin.src/M000013.html" target="Code" class="methodtitle"
onClick="popCode('StatsPlugin.src/M000013.html');return false;">
<b>handle_listtokens</b>(m)
</a>
</td></tr>
</table>
<div class="description">
<p>
}}} {{{
</p>
</div>
<table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
<tr><td class="methodtitle">
<a name="M000014"></a>
<a href="StatsPlugin.src/M000014.html" target="Code" class="methodtitle"
onClick="popCode('StatsPlugin.src/M000014.html');return false;">
<b>handle_rmabuser</b>(m)
</a>
</td></tr>
</table>
<div class="description">
<p>
}}} {{{
</p>
</div>
</body>
|