1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2 <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3 <title>InspIRCd: Module class Reference</title>
4 <link href="inspircd.css" rel="stylesheet" type="text/css">
6 <!-- Generated by Doxygen 1.3.3 -->
7 <div class="qindex"><a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Compound List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Compound Members</a> | <a class="qindex" href="globals.html">File Members</a></div>
8 <h1>Module Class Reference</h1>Base class for all InspIRCd modules This class is the base class for InspIRCd modules.
9 <a href="#_details">More...</a>
11 <code>#include <<a class="el" href="modules_8h-source.html">modules.h</a>></code>
13 Inherits <a class="el" href="classclassbase.html">classbase</a>.
15 <a href="classModule-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
17 <tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr>
18 <tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a0">Module</a> ()</td></tr>
20 <tr><td class="mdescLeft"> </td><td class="mdescRight">Default constructor creates a module class. </em> <a href="#a0"></a><em><br><br></td></tr>
21 <tr><td class="memItemLeft" nowrap align=right valign=top>virtual </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a1">~Module</a> ()</td></tr>
23 <tr><td class="mdescLeft"> </td><td class="mdescRight">Default destructor destroys a module class. </em> <a href="#a1"></a><em><br><br></td></tr>
24 <tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="classVersion.html">Version</a> </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a2">GetVersion</a> ()</td></tr>
26 <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the version number of a Module. </em> <a href="#a2"></a><em><br><br></td></tr>
27 <tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a3">OnUserConnect</a> (<a class="el" href="classuserrec.html">userrec</a> *user)</td></tr>
29 <tr><td class="mdescLeft"> </td><td class="mdescRight">Called when a user connects. </em> <a href="#a3"></a><em><br><br></td></tr>
30 <tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a4">OnUserQuit</a> (<a class="el" href="classuserrec.html">userrec</a> *user)</td></tr>
32 <tr><td class="mdescLeft"> </td><td class="mdescRight">Called when a user quits. </em> <a href="#a4"></a><em><br><br></td></tr>
33 <tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a5">OnUserJoin</a> (<a class="el" href="classuserrec.html">userrec</a> *user, <a class="el" href="classchanrec.html">chanrec</a> *channel)</td></tr>
35 <tr><td class="mdescLeft"> </td><td class="mdescRight">Called when a user joins a channel. </em> <a href="#a5"></a><em><br><br></td></tr>
36 <tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a6">OnUserPart</a> (<a class="el" href="classuserrec.html">userrec</a> *user, <a class="el" href="classchanrec.html">chanrec</a> *channel)</td></tr>
38 <tr><td class="mdescLeft"> </td><td class="mdescRight">Called when a user parts a channel. </em> <a href="#a6"></a><em><br><br></td></tr>
39 <tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a7">OnPacketTransmit</a> (char *p)</td></tr>
41 <tr><td class="mdescLeft"> </td><td class="mdescRight">Called before a packet is transmitted across the irc network between two irc servers. </em> <a href="#a7"></a><em><br><br></td></tr>
42 <tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a8">OnPacketReceive</a> (char *p)</td></tr>
44 <tr><td class="mdescLeft"> </td><td class="mdescRight">Called after a packet is received from another irc server. </em> <a href="#a8"></a><em><br><br></td></tr>
45 <tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a9">OnRehash</a> ()</td></tr>
47 <tr><td class="mdescLeft"> </td><td class="mdescRight">Called on rehash. </em> <a href="#a9"></a><em><br><br></td></tr>
48 <tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a10">OnServerRaw</a> (std::string &raw, bool inbound, <a class="el" href="classuserrec.html">userrec</a> *user)</td></tr>
50 <tr><td class="mdescLeft"> </td><td class="mdescRight">Called when a raw command is transmitted or received. </em> <a href="#a10"></a><em><br><br></td></tr>
51 <tr><td class="memItemLeft" nowrap align=right valign=top>virtual int </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a11">OnExtendedMode</a> (<a class="el" href="classuserrec.html">userrec</a> *user, void *target, char modechar, int type, bool mode_on, <a class="el" href="modules_8h.html#a31">string_list</a> &params)</td></tr>
53 <tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever an extended mode is to be processed. </em> <a href="#a11"></a><em><br><br></td></tr>
54 <tr><td class="memItemLeft" nowrap align=right valign=top>virtual int </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a12">OnUserPreJoin</a> (<a class="el" href="classuserrec.html">userrec</a> *user, <a class="el" href="classchanrec.html">chanrec</a> *chan, const char *cname)</td></tr>
56 <tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever a user is about to join a channel, before any processing is done. </em> <a href="#a12"></a><em><br><br></td></tr>
57 <tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a13">OnOper</a> (<a class="el" href="classuserrec.html">userrec</a> *user)</td></tr>
59 <tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever a user opers locally. </em> <a href="#a13"></a><em><br><br></td></tr>
60 <tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a14">OnInfo</a> (<a class="el" href="classuserrec.html">userrec</a> *user)</td></tr>
62 <tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever a user types /INFO. </em> <a href="#a14"></a><em><br><br></td></tr>
63 <tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a15">OnWhois</a> (<a class="el" href="classuserrec.html">userrec</a> *source, <a class="el" href="classuserrec.html">userrec</a> *dest)</td></tr>
65 <tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever a /WHOIS is performed on a local user. </em> <a href="#a15"></a><em><br><br></td></tr>
66 <tr><td class="memItemLeft" nowrap align=right valign=top>virtual int </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a16">OnUserPreInvite</a> (<a class="el" href="classuserrec.html">userrec</a> *source, <a class="el" href="classuserrec.html">userrec</a> *dest, <a class="el" href="classchanrec.html">chanrec</a> *channel)</td></tr>
68 <tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever a user is about to invite another user into a channel, before any processing is done. </em> <a href="#a16"></a><em><br><br></td></tr>
69 <tr><td class="memItemLeft" nowrap align=right valign=top>virtual int </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a17">OnUserPreMessage</a> (<a class="el" href="classuserrec.html">userrec</a> *user, void *dest, int target_type, std::string &text)</td></tr>
71 <tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever a user is about to PRIVMSG A user or a channel, before any processing is done. </em> <a href="#a17"></a><em><br><br></td></tr>
72 <tr><td class="memItemLeft" nowrap align=right valign=top>virtual int </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a18">OnUserPreNotice</a> (<a class="el" href="classuserrec.html">userrec</a> *user, void *dest, int target_type, std::string &text)</td></tr>
74 <tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever a user is about to NOTICE A user or a channel, before any processing is done. </em> <a href="#a18"></a><em><br><br></td></tr>
75 <tr><td class="memItemLeft" nowrap align=right valign=top>virtual int </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a19">OnUserPreNick</a> (<a class="el" href="classuserrec.html">userrec</a> *user, std::string newnick)</td></tr>
77 <tr><td class="mdescLeft"> </td><td class="mdescRight">Called before any nickchange, local or remote. </em> <a href="#a19"></a><em><br><br></td></tr>
78 <tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a20">OnUserPostNick</a> (<a class="el" href="classuserrec.html">userrec</a> *user, std::string oldnick)</td></tr>
80 <tr><td class="mdescLeft"> </td><td class="mdescRight">Called after any nickchange, local or remote. </em> <a href="#a20"></a><em><br><br></td></tr>
81 <tr><td class="memItemLeft" nowrap align=right valign=top>virtual int </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a21">OnAccessCheck</a> (<a class="el" href="classuserrec.html">userrec</a> *source, <a class="el" href="classuserrec.html">userrec</a> *dest, <a class="el" href="classchanrec.html">chanrec</a> *channel, int access_type)</td></tr>
83 <tr><td class="mdescLeft"> </td><td class="mdescRight">Called before an action which requires a channel privilage check. </em> <a href="#a21"></a><em><br><br></td></tr>
84 <tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="modules_8h.html#a31">string_list</a> </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a22">OnUserSync</a> (<a class="el" href="classuserrec.html">userrec</a> *user)</td></tr>
86 <tr><td class="mdescLeft"> </td><td class="mdescRight">Called during a netburst to sync user data. </em> <a href="#a22"></a><em><br><br></td></tr>
87 <tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="modules_8h.html#a31">string_list</a> </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a23">OnChannelSync</a> (<a class="el" href="classchanrec.html">chanrec</a> *chan)</td></tr>
89 <tr><td class="mdescLeft"> </td><td class="mdescRight">Called during a netburst to sync channel data. </em> <a href="#a23"></a><em><br><br></td></tr>
90 <tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a24">On005Numeric</a> (std::string &output)</td></tr>
92 <tr><td class="mdescLeft"> </td><td class="mdescRight">Called when a 005 numeric is about to be output. </em> <a href="#a24"></a><em><br><br></td></tr>
93 <tr><td class="memItemLeft" nowrap align=right valign=top>virtual int </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a25">OnKill</a> (<a class="el" href="classuserrec.html">userrec</a> *source, <a class="el" href="classuserrec.html">userrec</a> *dest, std::string reason)</td></tr>
95 <tr><td class="mdescLeft"> </td><td class="mdescRight">Called when a client is disconnected by KILL. </em> <a href="#a25"></a><em><br><br></td></tr>
96 <tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a26">OnLoadModule</a> (<a class="el" href="classModule.html">Module</a> *mod, std::string name)</td></tr>
98 <tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever a module is loaded. </em> <a href="#a26"></a><em><br><br></td></tr>
100 <hr><a name="_details"></a><h2>Detailed Description</h2>
101 Base class for all InspIRCd modules This class is the base class for InspIRCd modules.
103 All modules must inherit from this class, its methods will be called when irc server events occur. class inherited from module must be instantiated by the <a class="el" href="classModuleFactory.html">ModuleFactory</a> class (see relevent section) for the plugin to be initialised.
107 Definition at line <a class="el" href="modules_8h-source.html#l00133">133</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.<hr><h2>Constructor & Destructor Documentation</h2>
108 <a name="a0" doxytag="Module::Module"></a><p>
109 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
112 <table cellpadding="0" cellspacing="0" border="0">
114 <td class="md" nowrap valign="top"> Module::Module </td>
115 <td class="md" valign="top">( </td>
116 <td class="mdname1" valign="top" nowrap> </td>
117 <td class="md" valign="top"> ) </td>
118 <td class="md" nowrap></td>
125 <table cellspacing=5 cellpadding=0 border=0>
133 Default constructor creates a module class.
137 Definition at line <a class="el" href="modules_8cpp-source.html#l00306">306</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
139 <div class="fragment"><pre>00306 { }
143 <a name="a1" doxytag="Module::~Module"></a><p>
144 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
147 <table cellpadding="0" cellspacing="0" border="0">
149 <td class="md" nowrap valign="top"> Module::~<a class="el" href="classModule.html">Module</a> </td>
150 <td class="md" valign="top">( </td>
151 <td class="mdname1" valign="top" nowrap> </td>
152 <td class="md" valign="top"> ) </td>
153 <td class="md" nowrap><code> [virtual]</code></td>
160 <table cellspacing=5 cellpadding=0 border=0>
168 Default destructor destroys a module class.
172 Definition at line <a class="el" href="modules_8cpp-source.html#l00307">307</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
174 <div class="fragment"><pre>00307 { }
178 <hr><h2>Member Function Documentation</h2>
179 <a name="a2" doxytag="Module::GetVersion"></a><p>
180 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
183 <table cellpadding="0" cellspacing="0" border="0">
185 <td class="md" nowrap valign="top"> <a class="el" href="classVersion.html">Version</a> Module::GetVersion </td>
186 <td class="md" valign="top">( </td>
187 <td class="mdname1" valign="top" nowrap> </td>
188 <td class="md" valign="top"> ) </td>
189 <td class="md" nowrap><code> [virtual]</code></td>
196 <table cellspacing=5 cellpadding=0 border=0>
204 Returns the version number of a Module.
206 The method should return a <a class="el" href="classVersion.html">Version</a> object with its version information assigned via <a class="el" href="classVersion.html#a0">Version::Version</a>
208 Definition at line <a class="el" href="modules_8cpp-source.html#l00318">318</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
210 References <a class="el" href="modules_8h-source.html#l00054">VF_VENDOR</a>.
212 <div class="fragment"><pre>00318 { <span class="keywordflow">return</span> <a class="code" href="classVersion.html">Version</a>(1,0,0,0,VF_VENDOR); }
216 <a name="a24" doxytag="Module::On005Numeric"></a><p>
217 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
220 <table cellpadding="0" cellspacing="0" border="0">
222 <td class="md" nowrap valign="top"> void Module::On005Numeric </td>
223 <td class="md" valign="top">( </td>
224 <td class="md" nowrap valign="top">std::string & </td>
225 <td class="mdname1" valign="top" nowrap> <em>output</em> </td>
226 <td class="md" valign="top"> ) </td>
227 <td class="md" nowrap><code> [virtual]</code></td>
234 <table cellspacing=5 cellpadding=0 border=0>
242 Called when a 005 numeric is about to be output.
244 The module should modify the 005 numeric if needed to indicate its features.
246 Definition at line <a class="el" href="modules_8cpp-source.html#l00330">330</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
248 <div class="fragment"><pre>00330 { };
252 <a name="a21" doxytag="Module::OnAccessCheck"></a><p>
253 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
256 <table cellpadding="0" cellspacing="0" border="0">
258 <td class="md" nowrap valign="top"> int Module::OnAccessCheck </td>
259 <td class="md" valign="top">( </td>
260 <td class="md" nowrap valign="top"><a class="el" href="classuserrec.html">userrec</a> * </td>
261 <td class="mdname" nowrap> <em>source</em>, </td>
266 <td class="md" nowrap><a class="el" href="classuserrec.html">userrec</a> * </td>
267 <td class="mdname" nowrap> <em>dest</em>, </td>
272 <td class="md" nowrap><a class="el" href="classchanrec.html">chanrec</a> * </td>
273 <td class="mdname" nowrap> <em>channel</em>, </td>
278 <td class="md" nowrap>int </td>
279 <td class="mdname" nowrap> <em>access_type</em></td>
283 <td class="md">) </td>
284 <td class="md" colspan="2"><code> [virtual]</code></td>
291 <table cellspacing=5 cellpadding=0 border=0>
299 Called before an action which requires a channel privilage check.
301 This function is called before many functions which check a users status on a channel, for example before opping a user, deopping a user, kicking a user, etc. There are several values for access_type which indicate for what reason access is being checked. These are:<br>
303 AC_KICK (0) - A user is being kicked<br>
304 AC_DEOP (1) - a user is being deopped<br>
305 AC_OP (2) - a user is being opped<br>
306 AC_VOICE (3) - a user is being voiced<br>
307 AC_DEVOICE (4) - a user is being devoiced<br>
308 AC_HALFOP (5) - a user is being halfopped<br>
309 AC_DEHALFOP (6) - a user is being dehalfopped<br>
310 AC_INVITE (7) - a user is being invited<br>
311 AC_GENERAL_MODE (8) - a user channel mode is being changed<br>
313 Upon returning from your function you must return either ACR_DEFAULT, to indicate the module wishes to do nothing, or ACR_DENY where approprate to deny the action, and ACR_ALLOW where appropriate to allow the action. Please note that in the case of some access checks (such as AC_GENERAL_MODE) access may be denied 'upstream' causing other checks such as AC_DEOP to not be reached. Be very careful with use of the AC_GENERAL_MODE type, as it may inadvertently override the behaviour of other modules. When the access_type is AC_GENERAL_MODE, the destination of the mode will be NULL (as it has not yet been determined).
315 Definition at line <a class="el" href="modules_8cpp-source.html#l00327">327</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
317 References <a class="el" href="modules_8h-source.html#l00037">ACR_DEFAULT</a>.
319 <div class="fragment"><pre>00327 { <span class="keywordflow">return</span> <a class="code" href="modules_8h.html#a8">ACR_DEFAULT</a>; };
323 <a name="a23" doxytag="Module::OnChannelSync"></a><p>
324 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
327 <table cellpadding="0" cellspacing="0" border="0">
329 <td class="md" nowrap valign="top"> <a class="el" href="modules_8h.html#a31">string_list</a> Module::OnChannelSync </td>
330 <td class="md" valign="top">( </td>
331 <td class="md" nowrap valign="top"><a class="el" href="classchanrec.html">chanrec</a> * </td>
332 <td class="mdname1" valign="top" nowrap> <em>chan</em> </td>
333 <td class="md" valign="top"> ) </td>
334 <td class="md" nowrap><code> [virtual]</code></td>
341 <table cellspacing=5 cellpadding=0 border=0>
349 Called during a netburst to sync channel data.
351 This is called during the netburst on a per-channel basis. You should use this call to up any special channel-related things which are implemented by your module, e.g. sending listmodes. You may return multiple commands in the string_list.
353 Definition at line <a class="el" href="modules_8cpp-source.html#l00329">329</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
355 References <a class="el" href="modules_8h-source.html#l00068">string_list</a>.
357 <div class="fragment"><pre>00329 { <a class="code" href="modules_8h.html#a31">string_list</a> empty; <span class="keywordflow">return</span> empty; }
361 <a name="a11" doxytag="Module::OnExtendedMode"></a><p>
362 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
365 <table cellpadding="0" cellspacing="0" border="0">
367 <td class="md" nowrap valign="top"> int Module::OnExtendedMode </td>
368 <td class="md" valign="top">( </td>
369 <td class="md" nowrap valign="top"><a class="el" href="classuserrec.html">userrec</a> * </td>
370 <td class="mdname" nowrap> <em>user</em>, </td>
375 <td class="md" nowrap>void * </td>
376 <td class="mdname" nowrap> <em>target</em>, </td>
381 <td class="md" nowrap>char </td>
382 <td class="mdname" nowrap> <em>modechar</em>, </td>
387 <td class="md" nowrap>int </td>
388 <td class="mdname" nowrap> <em>type</em>, </td>
393 <td class="md" nowrap>bool </td>
394 <td class="mdname" nowrap> <em>mode_on</em>, </td>
399 <td class="md" nowrap><a class="el" href="modules_8h.html#a31">string_list</a> & </td>
400 <td class="mdname" nowrap> <em>params</em></td>
404 <td class="md">) </td>
405 <td class="md" colspan="2"><code> [virtual]</code></td>
412 <table cellspacing=5 cellpadding=0 border=0>
420 Called whenever an extended mode is to be processed.
422 The type parameter is MT_SERVER, MT_CLIENT or MT_CHANNEL, dependent on where the mode is being changed. mode_on is set when the mode is being set, in which case params contains a list of parameters for the mode as strings. If mode_on is false, the mode is being removed, and parameters may contain the parameters for the mode, dependent on wether they were defined when a mode handler was set up with <a class="el" href="classServer.html#a21">Server::AddExtendedMode</a> If the mode is a channel mode, target is a chanrec*, and if it is a user mode, target is a userrec*. You must cast this value yourself to make use of it.
424 Definition at line <a class="el" href="modules_8cpp-source.html#l00317">317</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
426 <div class="fragment"><pre>00317 { <span class="keywordflow">return</span> <span class="keyword">false</span>; }
430 <a name="a14" doxytag="Module::OnInfo"></a><p>
431 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
434 <table cellpadding="0" cellspacing="0" border="0">
436 <td class="md" nowrap valign="top"> void Module::OnInfo </td>
437 <td class="md" valign="top">( </td>
438 <td class="md" nowrap valign="top"><a class="el" href="classuserrec.html">userrec</a> * </td>
439 <td class="mdname1" valign="top" nowrap> <em>user</em> </td>
440 <td class="md" valign="top"> ) </td>
441 <td class="md" nowrap><code> [virtual]</code></td>
448 <table cellspacing=5 cellpadding=0 border=0>
456 Called whenever a user types /INFO.
458 The userrec will contain the information of the user who typed the command. Modules may use this method to output their own credits in /INFO (which is the ircd's version of an about box). It is purposefully not possible to modify any info that has already been output, or halt the list. You must write a 371 numeric to the user, containing your info in the following format:<p>
459 <nick> :information here
461 Definition at line <a class="el" href="modules_8cpp-source.html#l00320">320</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
463 <div class="fragment"><pre>00320 { };
467 <a name="a25" doxytag="Module::OnKill"></a><p>
468 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
471 <table cellpadding="0" cellspacing="0" border="0">
473 <td class="md" nowrap valign="top"> int Module::OnKill </td>
474 <td class="md" valign="top">( </td>
475 <td class="md" nowrap valign="top"><a class="el" href="classuserrec.html">userrec</a> * </td>
476 <td class="mdname" nowrap> <em>source</em>, </td>
481 <td class="md" nowrap><a class="el" href="classuserrec.html">userrec</a> * </td>
482 <td class="mdname" nowrap> <em>dest</em>, </td>
487 <td class="md" nowrap>std::string </td>
488 <td class="mdname" nowrap> <em>reason</em></td>
492 <td class="md">) </td>
493 <td class="md" colspan="2"><code> [virtual]</code></td>
500 <table cellspacing=5 cellpadding=0 border=0>
508 Called when a client is disconnected by KILL.
510 If a client is killed by a server, e.g. a nickname collision or protocol error, source is NULL. Return 1 from this function to prevent the kill, and 0 from this function to allow it as normal. If you prevent the kill no output will be sent to the client, it is down to your module to generate this information. NOTE: It is NOT advisable to stop kills which originate from servers. If you do so youre risking race conditions, desyncs and worse!
512 Definition at line <a class="el" href="modules_8cpp-source.html#l00331">331</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
514 <div class="fragment"><pre>00331 { <span class="keywordflow">return</span> 0; };
518 <a name="a26" doxytag="Module::OnLoadModule"></a><p>
519 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
522 <table cellpadding="0" cellspacing="0" border="0">
524 <td class="md" nowrap valign="top"> void Module::OnLoadModule </td>
525 <td class="md" valign="top">( </td>
526 <td class="md" nowrap valign="top"><a class="el" href="classModule.html">Module</a> * </td>
527 <td class="mdname" nowrap> <em>mod</em>, </td>
532 <td class="md" nowrap>std::string </td>
533 <td class="mdname" nowrap> <em>name</em></td>
537 <td class="md">) </td>
538 <td class="md" colspan="2"><code> [virtual]</code></td>
545 <table cellspacing=5 cellpadding=0 border=0>
553 Called whenever a module is loaded.
555 mod will contain a pointer to the module, and string will contain its name, for example m_widgets.so. This function is primary for dependency checking, your module may decide to enable some extra features if it sees that you have for example loaded "m_killwidgets.so" with "m_makewidgets.so". It is highly recommended that modules do *NOT* bail if they cannot satisfy dependencies, but instead operate under reduced functionality, unless the dependency is absolutely neccessary (e.g. a module that extends the features of another module).
557 Definition at line <a class="el" href="modules_8cpp-source.html#l00332">332</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
559 <div class="fragment"><pre>00332 { };
563 <a name="a13" doxytag="Module::OnOper"></a><p>
564 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
567 <table cellpadding="0" cellspacing="0" border="0">
569 <td class="md" nowrap valign="top"> void Module::OnOper </td>
570 <td class="md" valign="top">( </td>
571 <td class="md" nowrap valign="top"><a class="el" href="classuserrec.html">userrec</a> * </td>
572 <td class="mdname1" valign="top" nowrap> <em>user</em> </td>
573 <td class="md" valign="top"> ) </td>
574 <td class="md" nowrap><code> [virtual]</code></td>
581 <table cellspacing=5 cellpadding=0 border=0>
589 Called whenever a user opers locally.
591 The userrec will contain the oper mode 'o' as this function is called after any modifications are made to the user's structure by the core.
593 Definition at line <a class="el" href="modules_8cpp-source.html#l00319">319</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
595 <div class="fragment"><pre>00319 { };
599 <a name="a8" doxytag="Module::OnPacketReceive"></a><p>
600 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
603 <table cellpadding="0" cellspacing="0" border="0">
605 <td class="md" nowrap valign="top"> void Module::OnPacketReceive </td>
606 <td class="md" valign="top">( </td>
607 <td class="md" nowrap valign="top">char * </td>
608 <td class="mdname1" valign="top" nowrap> <em>p</em> </td>
609 <td class="md" valign="top"> ) </td>
610 <td class="md" nowrap><code> [virtual]</code></td>
617 <table cellspacing=5 cellpadding=0 border=0>
625 Called after a packet is received from another irc server.
627 The packet is represented as a char*, as it should be regarded as a buffer, and not a string. This allows you to easily represent it in the correct ways to implement encryption, compression, digital signatures and anything else you may want to add. This should be regarded as a pre-processor and will be called immediately after the packet is received but before any other operations with the core of the ircd.
629 Definition at line <a class="el" href="modules_8cpp-source.html#l00313">313</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
631 <div class="fragment"><pre>00313 { }
635 <a name="a7" doxytag="Module::OnPacketTransmit"></a><p>
636 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
639 <table cellpadding="0" cellspacing="0" border="0">
641 <td class="md" nowrap valign="top"> void Module::OnPacketTransmit </td>
642 <td class="md" valign="top">( </td>
643 <td class="md" nowrap valign="top">char * </td>
644 <td class="mdname1" valign="top" nowrap> <em>p</em> </td>
645 <td class="md" valign="top"> ) </td>
646 <td class="md" nowrap><code> [virtual]</code></td>
653 <table cellspacing=5 cellpadding=0 border=0>
661 Called before a packet is transmitted across the irc network between two irc servers.
663 The packet is represented as a char*, as it should be regarded as a buffer, and not a string. This allows you to easily represent it in the correct ways to implement encryption, compression, digital signatures and anything else you may want to add. This should be regarded as a pre-processor and will be called before ANY other operations within the ircd core program.
665 Definition at line <a class="el" href="modules_8cpp-source.html#l00312">312</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
667 <div class="fragment"><pre>00312 { }
671 <a name="a9" doxytag="Module::OnRehash"></a><p>
672 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
675 <table cellpadding="0" cellspacing="0" border="0">
677 <td class="md" nowrap valign="top"> void Module::OnRehash </td>
678 <td class="md" valign="top">( </td>
679 <td class="mdname1" valign="top" nowrap> </td>
680 <td class="md" valign="top"> ) </td>
681 <td class="md" nowrap><code> [virtual]</code></td>
688 <table cellspacing=5 cellpadding=0 border=0>
698 This method is called prior to a /REHASH or when a SIGHUP is received from the operating system. You should use it to reload any files so that your module keeps in step with the rest of the application.
700 Definition at line <a class="el" href="modules_8cpp-source.html#l00314">314</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
702 <div class="fragment"><pre>00314 { }
706 <a name="a10" doxytag="Module::OnServerRaw"></a><p>
707 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
710 <table cellpadding="0" cellspacing="0" border="0">
712 <td class="md" nowrap valign="top"> void Module::OnServerRaw </td>
713 <td class="md" valign="top">( </td>
714 <td class="md" nowrap valign="top">std::string & </td>
715 <td class="mdname" nowrap> <em>raw</em>, </td>
720 <td class="md" nowrap>bool </td>
721 <td class="mdname" nowrap> <em>inbound</em>, </td>
726 <td class="md" nowrap><a class="el" href="classuserrec.html">userrec</a> * </td>
727 <td class="mdname" nowrap> <em>user</em></td>
731 <td class="md">) </td>
732 <td class="md" colspan="2"><code> [virtual]</code></td>
739 <table cellspacing=5 cellpadding=0 border=0>
747 Called when a raw command is transmitted or received.
749 This method is the lowest level of handler available to a module. It will be called with raw data which is passing through a connected socket. If you wish, you may munge this data by changing the string parameter "raw". If you do this, after your function exits it will immediately be cut down to 510 characters plus a carriage return and linefeed. For INBOUND messages only (where inbound is set to true) the value of user will be the userrec of the connection sending the data. This is not possible for outbound data because the data may be being routed to multiple targets.
751 Definition at line <a class="el" href="modules_8cpp-source.html#l00315">315</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
753 <div class="fragment"><pre>00315 { }
757 <a name="a3" doxytag="Module::OnUserConnect"></a><p>
758 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
761 <table cellpadding="0" cellspacing="0" border="0">
763 <td class="md" nowrap valign="top"> void Module::OnUserConnect </td>
764 <td class="md" valign="top">( </td>
765 <td class="md" nowrap valign="top"><a class="el" href="classuserrec.html">userrec</a> * </td>
766 <td class="mdname1" valign="top" nowrap> <em>user</em> </td>
767 <td class="md" valign="top"> ) </td>
768 <td class="md" nowrap><code> [virtual]</code></td>
775 <table cellspacing=5 cellpadding=0 border=0>
783 Called when a user connects.
785 The details of the connecting user are available to you in the parameter userrec *user
787 Definition at line <a class="el" href="modules_8cpp-source.html#l00308">308</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
789 <div class="fragment"><pre>00308 { }
793 <a name="a5" doxytag="Module::OnUserJoin"></a><p>
794 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
797 <table cellpadding="0" cellspacing="0" border="0">
799 <td class="md" nowrap valign="top"> void Module::OnUserJoin </td>
800 <td class="md" valign="top">( </td>
801 <td class="md" nowrap valign="top"><a class="el" href="classuserrec.html">userrec</a> * </td>
802 <td class="mdname" nowrap> <em>user</em>, </td>
807 <td class="md" nowrap><a class="el" href="classchanrec.html">chanrec</a> * </td>
808 <td class="mdname" nowrap> <em>channel</em></td>
812 <td class="md">) </td>
813 <td class="md" colspan="2"><code> [virtual]</code></td>
820 <table cellspacing=5 cellpadding=0 border=0>
828 Called when a user joins a channel.
830 The details of the joining user are available to you in the parameter userrec *user, and the details of the channel they have joined is available in the variable chanrec *channel
832 Definition at line <a class="el" href="modules_8cpp-source.html#l00310">310</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
834 <div class="fragment"><pre>00310 { }
838 <a name="a6" doxytag="Module::OnUserPart"></a><p>
839 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
842 <table cellpadding="0" cellspacing="0" border="0">
844 <td class="md" nowrap valign="top"> void Module::OnUserPart </td>
845 <td class="md" valign="top">( </td>
846 <td class="md" nowrap valign="top"><a class="el" href="classuserrec.html">userrec</a> * </td>
847 <td class="mdname" nowrap> <em>user</em>, </td>
852 <td class="md" nowrap><a class="el" href="classchanrec.html">chanrec</a> * </td>
853 <td class="mdname" nowrap> <em>channel</em></td>
857 <td class="md">) </td>
858 <td class="md" colspan="2"><code> [virtual]</code></td>
865 <table cellspacing=5 cellpadding=0 border=0>
873 Called when a user parts a channel.
875 The details of the leaving user are available to you in the parameter userrec *user, and the details of the channel they have left is available in the variable chanrec *channel
877 Definition at line <a class="el" href="modules_8cpp-source.html#l00311">311</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
879 <div class="fragment"><pre>00311 { }
883 <a name="a20" doxytag="Module::OnUserPostNick"></a><p>
884 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
887 <table cellpadding="0" cellspacing="0" border="0">
889 <td class="md" nowrap valign="top"> void Module::OnUserPostNick </td>
890 <td class="md" valign="top">( </td>
891 <td class="md" nowrap valign="top"><a class="el" href="classuserrec.html">userrec</a> * </td>
892 <td class="mdname" nowrap> <em>user</em>, </td>
897 <td class="md" nowrap>std::string </td>
898 <td class="mdname" nowrap> <em>oldnick</em></td>
902 <td class="md">) </td>
903 <td class="md" colspan="2"><code> [virtual]</code></td>
910 <table cellspacing=5 cellpadding=0 border=0>
918 Called after any nickchange, local or remote.
920 This can be used to track users after nickchanges have been applied. Please note that although you can see remote nickchanges through this function, you should NOT make any changes to the userrec if the user is a remote user as this may cause a desnyc. check user->server before taking any action (including returning nonzero from the method). Because this method is called after the nickchange is taken place, no return values are possible to indicate forbidding of the nick change. Use OnUserPreNick for this.
922 Definition at line <a class="el" href="modules_8cpp-source.html#l00326">326</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
924 <div class="fragment"><pre>00326 { };
928 <a name="a16" doxytag="Module::OnUserPreInvite"></a><p>
929 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
932 <table cellpadding="0" cellspacing="0" border="0">
934 <td class="md" nowrap valign="top"> int Module::OnUserPreInvite </td>
935 <td class="md" valign="top">( </td>
936 <td class="md" nowrap valign="top"><a class="el" href="classuserrec.html">userrec</a> * </td>
937 <td class="mdname" nowrap> <em>source</em>, </td>
942 <td class="md" nowrap><a class="el" href="classuserrec.html">userrec</a> * </td>
943 <td class="mdname" nowrap> <em>dest</em>, </td>
948 <td class="md" nowrap><a class="el" href="classchanrec.html">chanrec</a> * </td>
949 <td class="mdname" nowrap> <em>channel</em></td>
953 <td class="md">) </td>
954 <td class="md" colspan="2"><code> [virtual]</code></td>
961 <table cellspacing=5 cellpadding=0 border=0>
969 Called whenever a user is about to invite another user into a channel, before any processing is done.
971 Returning 1 from this function stops the process immediately, causing no output to be sent to the user by the core. If you do this you must produce your own numerics, notices etc. This is useful for modules which may want to filter invites to channels.
973 Definition at line <a class="el" href="modules_8cpp-source.html#l00322">322</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
975 <div class="fragment"><pre>00322 { <span class="keywordflow">return</span> 0; };
979 <a name="a12" doxytag="Module::OnUserPreJoin"></a><p>
980 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
983 <table cellpadding="0" cellspacing="0" border="0">
985 <td class="md" nowrap valign="top"> int Module::OnUserPreJoin </td>
986 <td class="md" valign="top">( </td>
987 <td class="md" nowrap valign="top"><a class="el" href="classuserrec.html">userrec</a> * </td>
988 <td class="mdname" nowrap> <em>user</em>, </td>
993 <td class="md" nowrap><a class="el" href="classchanrec.html">chanrec</a> * </td>
994 <td class="mdname" nowrap> <em>chan</em>, </td>
999 <td class="md" nowrap>const char * </td>
1000 <td class="mdname" nowrap> <em>cname</em></td>
1004 <td class="md">) </td>
1005 <td class="md" colspan="2"><code> [virtual]</code></td>
1012 <table cellspacing=5 cellpadding=0 border=0>
1020 Called whenever a user is about to join a channel, before any processing is done.
1022 Returning a value of 1 from this function stops the process immediately, causing no output to be sent to the user by the core. If you do this you must produce your own numerics, notices etc. This is useful for modules which may want to mimic +b, +k, +l etc. Returning -1 from this function forces the join to be allowed, bypassing restrictions such as banlists, invite, keys etc.<p>
1024 If the user joins a NEW channel which does not exist yet, OnUserPreJoin will be called BEFORE the channel record is created. This will cause chanrec* chan to be NULL. There is very little you can do in form of processing on the actual channel record at this point, however the channel NAME will still be passed in char* cname, so that you could for example implement a channel blacklist or whitelist, etc.
1026 Definition at line <a class="el" href="modules_8cpp-source.html#l00316">316</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
1028 <div class="fragment"><pre>00316 { <span class="keywordflow">return</span> 0; }
1032 <a name="a17" doxytag="Module::OnUserPreMessage"></a><p>
1033 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1036 <table cellpadding="0" cellspacing="0" border="0">
1038 <td class="md" nowrap valign="top"> int Module::OnUserPreMessage </td>
1039 <td class="md" valign="top">( </td>
1040 <td class="md" nowrap valign="top"><a class="el" href="classuserrec.html">userrec</a> * </td>
1041 <td class="mdname" nowrap> <em>user</em>, </td>
1046 <td class="md" nowrap>void * </td>
1047 <td class="mdname" nowrap> <em>dest</em>, </td>
1052 <td class="md" nowrap>int </td>
1053 <td class="mdname" nowrap> <em>target_type</em>, </td>
1058 <td class="md" nowrap>std::string & </td>
1059 <td class="mdname" nowrap> <em>text</em></td>
1063 <td class="md">) </td>
1064 <td class="md" colspan="2"><code> [virtual]</code></td>
1071 <table cellspacing=5 cellpadding=0 border=0>
1079 Called whenever a user is about to PRIVMSG A user or a channel, before any processing is done.
1081 Returning any nonzero value from this function stops the process immediately, causing no output to be sent to the user by the core. If you do this you must produce your own numerics, notices etc. This is useful for modules which may want to filter or redirect messages. target_type can be one of TYPE_USER or TYPE_CHANNEL. If the target_type value is a user, you must cast dest to a userrec* otherwise you must cast it to a chanrec*, this is the details of where the message is destined to be sent.
1083 Definition at line <a class="el" href="modules_8cpp-source.html#l00323">323</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
1085 <div class="fragment"><pre>00323 { <span class="keywordflow">return</span> 0; };
1089 <a name="a19" doxytag="Module::OnUserPreNick"></a><p>
1090 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1093 <table cellpadding="0" cellspacing="0" border="0">
1095 <td class="md" nowrap valign="top"> int Module::OnUserPreNick </td>
1096 <td class="md" valign="top">( </td>
1097 <td class="md" nowrap valign="top"><a class="el" href="classuserrec.html">userrec</a> * </td>
1098 <td class="mdname" nowrap> <em>user</em>, </td>
1103 <td class="md" nowrap>std::string </td>
1104 <td class="mdname" nowrap> <em>newnick</em></td>
1108 <td class="md">) </td>
1109 <td class="md" colspan="2"><code> [virtual]</code></td>
1116 <table cellspacing=5 cellpadding=0 border=0>
1124 Called before any nickchange, local or remote.
1126 This can be used to implement Q-lines etc. Please note that although you can see remote nickchanges through this function, you should NOT make any changes to the userrec if the user is a remote user as this may cause a desnyc. check user->server before taking any action (including returning nonzero from the method). If your method returns nonzero, the nickchange is silently forbidden, and it is down to your module to generate some meaninful output.
1128 Definition at line <a class="el" href="modules_8cpp-source.html#l00325">325</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
1130 <div class="fragment"><pre>00325 { <span class="keywordflow">return</span> 0; };
1134 <a name="a18" doxytag="Module::OnUserPreNotice"></a><p>
1135 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1138 <table cellpadding="0" cellspacing="0" border="0">
1140 <td class="md" nowrap valign="top"> int Module::OnUserPreNotice </td>
1141 <td class="md" valign="top">( </td>
1142 <td class="md" nowrap valign="top"><a class="el" href="classuserrec.html">userrec</a> * </td>
1143 <td class="mdname" nowrap> <em>user</em>, </td>
1148 <td class="md" nowrap>void * </td>
1149 <td class="mdname" nowrap> <em>dest</em>, </td>
1154 <td class="md" nowrap>int </td>
1155 <td class="mdname" nowrap> <em>target_type</em>, </td>
1160 <td class="md" nowrap>std::string & </td>
1161 <td class="mdname" nowrap> <em>text</em></td>
1165 <td class="md">) </td>
1166 <td class="md" colspan="2"><code> [virtual]</code></td>
1173 <table cellspacing=5 cellpadding=0 border=0>
1181 Called whenever a user is about to NOTICE A user or a channel, before any processing is done.
1183 Returning any nonzero value from this function stops the process immediately, causing no output to be sent to the user by the core. If you do this you must produce your own numerics, notices etc. This is useful for modules which may want to filter or redirect messages. target_type can be one of TYPE_USER or TYPE_CHANNEL. If the target_type value is a user, you must cast dest to a userrec* otherwise you must cast it to a chanrec*, this is the details of where the message is destined to be sent. You may alter the message text as you wish before relinquishing control to the next module in the chain, and if no other modules block the text this altered form of the text will be sent out to the user and possibly to other servers.
1185 Definition at line <a class="el" href="modules_8cpp-source.html#l00324">324</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
1187 <div class="fragment"><pre>00324 { <span class="keywordflow">return</span> 0; };
1191 <a name="a4" doxytag="Module::OnUserQuit"></a><p>
1192 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1195 <table cellpadding="0" cellspacing="0" border="0">
1197 <td class="md" nowrap valign="top"> void Module::OnUserQuit </td>
1198 <td class="md" valign="top">( </td>
1199 <td class="md" nowrap valign="top"><a class="el" href="classuserrec.html">userrec</a> * </td>
1200 <td class="mdname1" valign="top" nowrap> <em>user</em> </td>
1201 <td class="md" valign="top"> ) </td>
1202 <td class="md" nowrap><code> [virtual]</code></td>
1209 <table cellspacing=5 cellpadding=0 border=0>
1217 Called when a user quits.
1219 The details of the exiting user are available to you in the parameter userrec *user
1221 Definition at line <a class="el" href="modules_8cpp-source.html#l00309">309</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
1223 <div class="fragment"><pre>00309 { }
1227 <a name="a22" doxytag="Module::OnUserSync"></a><p>
1228 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1231 <table cellpadding="0" cellspacing="0" border="0">
1233 <td class="md" nowrap valign="top"> <a class="el" href="modules_8h.html#a31">string_list</a> Module::OnUserSync </td>
1234 <td class="md" valign="top">( </td>
1235 <td class="md" nowrap valign="top"><a class="el" href="classuserrec.html">userrec</a> * </td>
1236 <td class="mdname1" valign="top" nowrap> <em>user</em> </td>
1237 <td class="md" valign="top"> ) </td>
1238 <td class="md" nowrap><code> [virtual]</code></td>
1245 <table cellspacing=5 cellpadding=0 border=0>
1253 Called during a netburst to sync user data.
1255 This is called during the netburst on a per-user basis. You should use this call to up any special user-related things which are implemented by your module, e.g. sending listmodes. You may return multiple commands in the string_list.
1257 Definition at line <a class="el" href="modules_8cpp-source.html#l00328">328</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
1259 References <a class="el" href="modules_8h-source.html#l00068">string_list</a>.
1261 <div class="fragment"><pre>00328 { <a class="code" href="modules_8h.html#a31">string_list</a> empty; <span class="keywordflow">return</span> empty; }
1265 <a name="a15" doxytag="Module::OnWhois"></a><p>
1266 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1269 <table cellpadding="0" cellspacing="0" border="0">
1271 <td class="md" nowrap valign="top"> void Module::OnWhois </td>
1272 <td class="md" valign="top">( </td>
1273 <td class="md" nowrap valign="top"><a class="el" href="classuserrec.html">userrec</a> * </td>
1274 <td class="mdname" nowrap> <em>source</em>, </td>
1279 <td class="md" nowrap><a class="el" href="classuserrec.html">userrec</a> * </td>
1280 <td class="mdname" nowrap> <em>dest</em></td>
1284 <td class="md">) </td>
1285 <td class="md" colspan="2"><code> [virtual]</code></td>
1292 <table cellspacing=5 cellpadding=0 border=0>
1300 Called whenever a /WHOIS is performed on a local user.
1302 The source parameter contains the details of the user who issued the WHOIS command, and the dest parameter contains the information of the user they are whoising.
1304 Definition at line <a class="el" href="modules_8cpp-source.html#l00321">321</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
1306 <div class="fragment"><pre>00321 { };
1310 <hr>The documentation for this class was generated from the following files:<ul>
1311 <li><a class="el" href="modules_8h-source.html">modules.h</a><li><a class="el" href="modules_8cpp-source.html">modules.cpp</a></ul>
1312 <hr size="1"><address style="align: right;"><small>Generated on Thu Apr 7 20:14:25 2005 for InspIRCd by
1313 <a href="http://www.doxygen.org/index.html">
1314 <img src="doxygen.png" alt="doxygen" align="middle" border=0 >
1315 </a>1.3.3 </small></address>