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>Server class Reference</title>
4 <link href="doxygen.css" rel="stylesheet" type="text/css">
6 <!-- Generated by Doxygen 1.3-rc2 -->
8 <a class="qindex" href="main.html">Main Page</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> </center>
9 <hr><h1>Server Class Reference</h1>Allows server output and query functions This class contains methods which allow a module to query the state of the irc server, and produce output to users and other servers.
10 <a href="#_details">More...</a>
12 <code>#include <<a class="el" href="modules_8h-source.html">modules.h</a>></code>
14 <a href="classServer-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
16 <tr><td colspan=2><br><h2>Public Methods</h2></td></tr>
17 <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classServer.html#a0">Server</a> ()</td></tr>
18 <tr><td> </td><td><font size=-1><em>Default constructor.</em> <a href="#a0"></a><em></em></font><br><br></td></tr>
19 <tr><td nowrap align=right valign=top>virtual </td><td valign=bottom><a class="el" href="classServer.html#a1">~Server</a> ()</td></tr>
20 <tr><td> </td><td><font size=-1><em>Default destructor.</em> <a href="#a1"></a><em></em></font><br><br></td></tr>
21 <tr><td nowrap align=right valign=top>virtual void </td><td valign=bottom><a class="el" href="classServer.html#a2">SendOpers</a> (string s)</td></tr>
22 <tr><td> </td><td><font size=-1><em>Sends text to all opers.</em> <a href="#a2"></a><em></em></font><br><br></td></tr>
23 <tr><td nowrap align=right valign=top>virtual void </td><td valign=bottom><a class="el" href="classServer.html#a3">Debug</a> (string s)</td></tr>
24 <tr><td> </td><td><font size=-1><em>Sends a debug string.</em> <a href="#a3"></a><em></em></font><br><br></td></tr>
25 <tr><td nowrap align=right valign=top>virtual void </td><td valign=bottom><a class="el" href="classServer.html#a4">Send</a> (int Socket, string s)</td></tr>
26 <tr><td> </td><td><font size=-1><em>Sends a line of text down a TCP/IP socket.</em> <a href="#a4"></a><em></em></font><br><br></td></tr>
27 <tr><td nowrap align=right valign=top>virtual void </td><td valign=bottom><a class="el" href="classServer.html#a5">SendServ</a> (int Socket, string s)</td></tr>
28 <tr><td> </td><td><font size=-1><em>Sends text from the server to a socket.</em> <a href="#a5"></a><em></em></font><br><br></td></tr>
29 <tr><td nowrap align=right valign=top>virtual void </td><td valign=bottom><a class="el" href="classServer.html#a6">SendFrom</a> (int Socket, <a class="el" href="classuserrec.html">userrec</a> *User, string s)</td></tr>
30 <tr><td> </td><td><font size=-1><em>Sends text from a user to a socket.</em> <a href="#a6"></a><em></em></font><br><br></td></tr>
31 <tr><td nowrap align=right valign=top>virtual void </td><td valign=bottom><a class="el" href="classServer.html#a7">SendTo</a> (<a class="el" href="classuserrec.html">userrec</a> *Source, <a class="el" href="classuserrec.html">userrec</a> *Dest, string s)</td></tr>
32 <tr><td> </td><td><font size=-1><em>Sends text from a user to another user.</em> <a href="#a7"></a><em></em></font><br><br></td></tr>
33 <tr><td nowrap align=right valign=top>virtual void </td><td valign=bottom><a class="el" href="classServer.html#a8">SendChannel</a> (<a class="el" href="classuserrec.html">userrec</a> *User, <a class="el" href="classchanrec.html">chanrec</a> *Channel, string s, bool IncludeSender)</td></tr>
34 <tr><td> </td><td><font size=-1><em>Sends text from a user to a channel (mulicast).</em> <a href="#a8"></a><em></em></font><br><br></td></tr>
35 <tr><td nowrap align=right valign=top>virtual bool </td><td valign=bottom><a class="el" href="classServer.html#a9">CommonChannels</a> (<a class="el" href="classuserrec.html">userrec</a> *u1, <a class="el" href="classuserrec.html">userrec</a> *u2)</td></tr>
36 <tr><td> </td><td><font size=-1><em>Returns true if two users share a common channel.</em> <a href="#a9"></a><em></em></font><br><br></td></tr>
37 <tr><td nowrap align=right valign=top>virtual void </td><td valign=bottom><a class="el" href="classServer.html#a10">SendCommon</a> (<a class="el" href="classuserrec.html">userrec</a> *User, string text, bool IncludeSender)</td></tr>
38 <tr><td> </td><td><font size=-1><em>Sends text from a user to one or more channels (mulicast).</em> <a href="#a10"></a><em></em></font><br><br></td></tr>
39 <tr><td nowrap align=right valign=top>virtual void </td><td valign=bottom><a class="el" href="classServer.html#a11">SendWallops</a> (<a class="el" href="classuserrec.html">userrec</a> *User, string text)</td></tr>
40 <tr><td> </td><td><font size=-1><em>Sends a WALLOPS message.</em> <a href="#a11"></a><em></em></font><br><br></td></tr>
41 <tr><td nowrap align=right valign=top>virtual bool </td><td valign=bottom><a class="el" href="classServer.html#a12">IsNick</a> (string nick)</td></tr>
42 <tr><td> </td><td><font size=-1><em>Returns true if a nick is valid.</em> <a href="#a12"></a><em></em></font><br><br></td></tr>
43 <tr><td nowrap align=right valign=top>virtual <a class="el" href="classuserrec.html">userrec</a> * </td><td valign=bottom><a class="el" href="classServer.html#a13">FindNick</a> (string nick)</td></tr>
44 <tr><td> </td><td><font size=-1><em>Attempts to look up a nick and return a pointer to it.</em> <a href="#a13"></a><em></em></font><br><br></td></tr>
45 <tr><td nowrap align=right valign=top>virtual <a class="el" href="classchanrec.html">chanrec</a> * </td><td valign=bottom><a class="el" href="classServer.html#a14">FindChannel</a> (string channel)</td></tr>
46 <tr><td> </td><td><font size=-1><em>Attempts to look up a channel and return a pointer to it.</em> <a href="#a14"></a><em></em></font><br><br></td></tr>
47 <tr><td nowrap align=right valign=top>virtual string </td><td valign=bottom><a class="el" href="classServer.html#a15">ChanMode</a> (<a class="el" href="classuserrec.html">userrec</a> *User, <a class="el" href="classchanrec.html">chanrec</a> *Chan)</td></tr>
48 <tr><td> </td><td><font size=-1><em>Attempts to look up a user's privilages on a channel.</em> <a href="#a15"></a><em></em></font><br><br></td></tr>
49 <tr><td nowrap align=right valign=top>virtual string </td><td valign=bottom><a class="el" href="classServer.html#a16">GetServerName</a> ()</td></tr>
50 <tr><td> </td><td><font size=-1><em>Returns the server name of the server where the module is loaded.</em> <a href="#a16"></a><em></em></font><br><br></td></tr>
51 <tr><td nowrap align=right valign=top>virtual string </td><td valign=bottom><a class="el" href="classServer.html#a17">GetNetworkName</a> ()</td></tr>
52 <tr><td> </td><td><font size=-1><em>Returns the network name, global to all linked servers.</em> <a href="#a17"></a><em></em></font><br><br></td></tr>
53 <tr><td nowrap align=right valign=top>virtual <a class="el" href="classAdmin.html">Admin</a> </td><td valign=bottom><a class="el" href="classServer.html#a18">GetAdmin</a> ()</td></tr>
54 <tr><td> </td><td><font size=-1><em>Returns the information of the server as returned by the /ADMIN command.</em> <a href="#a18"></a><em></em></font><br><br></td></tr>
56 <hr><a name="_details"></a><h2>Detailed Description</h2>
57 Allows server output and query functions This class contains methods which allow a module to query the state of the irc server, and produce output to users and other servers.
59 All modules should instantiate at least one copy of this class, and use its member functions to perform their tasks.
63 Definition at line <a class="el" href="modules_8h-source.html#l00127">127</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.<hr><h2>Constructor & Destructor Documentation</h2>
64 <a name="a0" doxytag="Server::Server"></a><p>
65 <table width="100%" cellpadding="2" cellspacing="0" border="0">
68 <table cellpadding="0" cellspacing="0" border="0">
70 <td class="md" nowrap valign="top"> Server::Server </td>
71 <td class="md" valign="top">( </td>
72 <td class="mdname1" valign="top" nowrap> </td>
73 <td class="md" valign="top">) </td>
74 <td class="md" nowrap></td>
81 <table cellspacing=5 cellpadding=0 border=0>
91 Creates a Server object.
93 Definition at line <a class="el" href="modules_8cpp-source.html#l00055">55</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
95 <div class="fragment"><pre>00056 {
100 <a name="a1" doxytag="Server::~Server"></a><p>
101 <table width="100%" cellpadding="2" cellspacing="0" border="0">
104 <table cellpadding="0" cellspacing="0" border="0">
106 <td class="md" nowrap valign="top"> Server::~Server </td>
107 <td class="md" valign="top">( </td>
108 <td class="mdname1" valign="top" nowrap> </td>
109 <td class="md" valign="top">) </td>
110 <td class="md" nowrap><code> [virtual]</code></td>
117 <table cellspacing=5 cellpadding=0 border=0>
127 Destroys a Server object.
129 Definition at line <a class="el" href="modules_8cpp-source.html#l00059">59</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
131 <div class="fragment"><pre>00060 {
136 <hr><h2>Member Function Documentation</h2>
137 <a name="a15" doxytag="Server::ChanMode"></a><p>
138 <table width="100%" cellpadding="2" cellspacing="0" border="0">
141 <table cellpadding="0" cellspacing="0" border="0">
143 <td class="md" nowrap valign="top"> string Server::ChanMode </td>
144 <td class="md" valign="top">( </td>
145 <td class="md" nowrap valign="top"><a class="el" href="classuserrec.html">userrec</a> * </td>
146 <td class="mdname" nowrap> <em>User</em>, </td>
151 <td class="md" nowrap><a class="el" href="classchanrec.html">chanrec</a> * </td>
152 <td class="mdname" nowrap> <em>Chan</em></td>
156 <td class="md">) </td>
157 <td class="md" colspan="2"><code> [virtual]</code></td>
164 <table cellspacing=5 cellpadding=0 border=0>
172 Attempts to look up a user's privilages on a channel.
174 This function will return a string containing either @, , +, or an empty string, representing the user's privilages upon the channel you specify.
176 Definition at line <a class="el" href="modules_8cpp-source.html#l00142">142</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
178 <div class="fragment"><pre>00143 {
179 00144 string mode = cmode(User,Chan);
180 00145 <span class="keywordflow">return</span> mode;
185 <a name="a9" doxytag="Server::CommonChannels"></a><p>
186 <table width="100%" cellpadding="2" cellspacing="0" border="0">
189 <table cellpadding="0" cellspacing="0" border="0">
191 <td class="md" nowrap valign="top"> bool Server::CommonChannels </td>
192 <td class="md" valign="top">( </td>
193 <td class="md" nowrap valign="top"><a class="el" href="classuserrec.html">userrec</a> * </td>
194 <td class="mdname" nowrap> <em>u1</em>, </td>
199 <td class="md" nowrap><a class="el" href="classuserrec.html">userrec</a> * </td>
200 <td class="mdname" nowrap> <em>u2</em></td>
204 <td class="md">) </td>
205 <td class="md" colspan="2"><code> [virtual]</code></td>
212 <table cellspacing=5 cellpadding=0 border=0>
220 Returns true if two users share a common channel.
222 This method is used internally by the NICK and QUIT commands, and the <a class="el" href="classServer.html#a10">Server::SendCommon</a> method.
224 Definition at line <a class="el" href="modules_8cpp-source.html#l00105">105</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
226 <div class="fragment"><pre>00106 {
227 00107 <span class="keywordflow">return</span> (common_channels(u1,u2) != 0);
232 <a name="a3" doxytag="Server::Debug"></a><p>
233 <table width="100%" cellpadding="2" cellspacing="0" border="0">
236 <table cellpadding="0" cellspacing="0" border="0">
238 <td class="md" nowrap valign="top"> void Server::Debug </td>
239 <td class="md" valign="top">( </td>
240 <td class="md" nowrap valign="top">string </td>
241 <td class="mdname1" valign="top" nowrap> <em>s</em> </td>
242 <td class="md" valign="top">) </td>
243 <td class="md" nowrap><code> [virtual]</code></td>
250 <table cellspacing=5 cellpadding=0 border=0>
258 Sends a debug string.
260 This method writes a line of text to the debug log. If debugging is disabled in the configuration, this command has no effect.
262 Definition at line <a class="el" href="modules_8cpp-source.html#l00068">68</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
264 <div class="fragment"><pre>00069 {
265 00070 debug(<span class="stringliteral">"%s"</span>,s.c_str());
270 <a name="a14" doxytag="Server::FindChannel"></a><p>
271 <table width="100%" cellpadding="2" cellspacing="0" border="0">
274 <table cellpadding="0" cellspacing="0" border="0">
276 <td class="md" nowrap valign="top"> <a class="el" href="classchanrec.html">chanrec</a> * Server::FindChannel </td>
277 <td class="md" valign="top">( </td>
278 <td class="md" nowrap valign="top">string </td>
279 <td class="mdname1" valign="top" nowrap> <em>channel</em> </td>
280 <td class="md" valign="top">) </td>
281 <td class="md" nowrap><code> [virtual]</code></td>
288 <table cellspacing=5 cellpadding=0 border=0>
296 Attempts to look up a channel and return a pointer to it.
298 This function will return NULL if the channel does not exist.
300 Definition at line <a class="el" href="modules_8cpp-source.html#l00137">137</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
302 <div class="fragment"><pre>00138 {
303 00139 <span class="keywordflow">return</span> FindChan(channel.c_str());
308 <a name="a13" doxytag="Server::FindNick"></a><p>
309 <table width="100%" cellpadding="2" cellspacing="0" border="0">
312 <table cellpadding="0" cellspacing="0" border="0">
314 <td class="md" nowrap valign="top"> <a class="el" href="classuserrec.html">userrec</a> * Server::FindNick </td>
315 <td class="md" valign="top">( </td>
316 <td class="md" nowrap valign="top">string </td>
317 <td class="mdname1" valign="top" nowrap> <em>nick</em> </td>
318 <td class="md" valign="top">) </td>
319 <td class="md" nowrap><code> [virtual]</code></td>
326 <table cellspacing=5 cellpadding=0 border=0>
334 Attempts to look up a nick and return a pointer to it.
336 This function will return NULL if the nick does not exist.
338 Definition at line <a class="el" href="modules_8cpp-source.html#l00132">132</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
340 <div class="fragment"><pre>00133 {
341 00134 <span class="keywordflow">return</span> Find(nick);
346 <a name="a18" doxytag="Server::GetAdmin"></a><p>
347 <table width="100%" cellpadding="2" cellspacing="0" border="0">
350 <table cellpadding="0" cellspacing="0" border="0">
352 <td class="md" nowrap valign="top"> <a class="el" href="classAdmin.html">Admin</a> Server::GetAdmin </td>
353 <td class="md" valign="top">( </td>
354 <td class="mdname1" valign="top" nowrap> </td>
355 <td class="md" valign="top">) </td>
356 <td class="md" nowrap><code> [virtual]</code></td>
363 <table cellspacing=5 cellpadding=0 border=0>
371 Returns the information of the server as returned by the /ADMIN command.
373 See the <a class="el" href="classAdmin.html">Admin</a> class for further information of the return value. The members <a class="el" href="classAdmin.html#m2">Admin::Nick</a>, <a class="el" href="classAdmin.html#m1">Admin::Email</a> and <a class="el" href="classAdmin.html#m0">Admin::Name</a> contain the information for the server where the module is loaded.
375 Definition at line <a class="el" href="modules_8cpp-source.html#l00158">158</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
377 <div class="fragment"><pre>00159 {
378 00160 <span class="keywordflow">return</span> <a class="code" href="classAdmin.html">Admin</a>(getadminname(),getadminemail(),getadminnick());
383 <a name="a17" doxytag="Server::GetNetworkName"></a><p>
384 <table width="100%" cellpadding="2" cellspacing="0" border="0">
387 <table cellpadding="0" cellspacing="0" border="0">
389 <td class="md" nowrap valign="top"> string Server::GetNetworkName </td>
390 <td class="md" valign="top">( </td>
391 <td class="mdname1" valign="top" nowrap> </td>
392 <td class="md" valign="top">) </td>
393 <td class="md" nowrap><code> [virtual]</code></td>
400 <table cellspacing=5 cellpadding=0 border=0>
408 Returns the network name, global to all linked servers.
412 Definition at line <a class="el" href="modules_8cpp-source.html#l00153">153</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
414 <div class="fragment"><pre>00154 {
415 00155 <span class="keywordflow">return</span> getnetworkname();
420 <a name="a16" doxytag="Server::GetServerName"></a><p>
421 <table width="100%" cellpadding="2" cellspacing="0" border="0">
424 <table cellpadding="0" cellspacing="0" border="0">
426 <td class="md" nowrap valign="top"> string Server::GetServerName </td>
427 <td class="md" valign="top">( </td>
428 <td class="mdname1" valign="top" nowrap> </td>
429 <td class="md" valign="top">) </td>
430 <td class="md" nowrap><code> [virtual]</code></td>
437 <table cellspacing=5 cellpadding=0 border=0>
445 Returns the server name of the server where the module is loaded.
449 Definition at line <a class="el" href="modules_8cpp-source.html#l00148">148</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
451 <div class="fragment"><pre>00149 {
452 00150 <span class="keywordflow">return</span> getservername();
457 <a name="a12" doxytag="Server::IsNick"></a><p>
458 <table width="100%" cellpadding="2" cellspacing="0" border="0">
461 <table cellpadding="0" cellspacing="0" border="0">
463 <td class="md" nowrap valign="top"> bool Server::IsNick </td>
464 <td class="md" valign="top">( </td>
465 <td class="md" nowrap valign="top">string </td>
466 <td class="mdname1" valign="top" nowrap> <em>nick</em> </td>
467 <td class="md" valign="top">) </td>
468 <td class="md" nowrap><code> [virtual]</code></td>
475 <table cellspacing=5 cellpadding=0 border=0>
483 Returns true if a nick is valid.
485 Nicks for unregistered connections will return false.
487 Definition at line <a class="el" href="modules_8cpp-source.html#l00127">127</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
489 <div class="fragment"><pre>00128 {
490 00129 <span class="keywordflow">return</span> (isnick(nick.c_str()) != 0);
495 <a name="a4" doxytag="Server::Send"></a><p>
496 <table width="100%" cellpadding="2" cellspacing="0" border="0">
499 <table cellpadding="0" cellspacing="0" border="0">
501 <td class="md" nowrap valign="top"> void Server::Send </td>
502 <td class="md" valign="top">( </td>
503 <td class="md" nowrap valign="top">int </td>
504 <td class="mdname" nowrap> <em>Socket</em>, </td>
509 <td class="md" nowrap>string </td>
510 <td class="mdname" nowrap> <em>s</em></td>
514 <td class="md">) </td>
515 <td class="md" colspan="2"><code> [virtual]</code></td>
522 <table cellspacing=5 cellpadding=0 border=0>
530 Sends a line of text down a TCP/IP socket.
532 This method writes a line of text to an established socket, cutting it to 510 characters plus a carriage return and linefeed if required.
534 Definition at line <a class="el" href="modules_8cpp-source.html#l00073">73</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
536 <div class="fragment"><pre>00074 {
537 00075 Write(Socket,<span class="stringliteral">"%s"</span>,s.c_str());
542 <a name="a8" doxytag="Server::SendChannel"></a><p>
543 <table width="100%" cellpadding="2" cellspacing="0" border="0">
546 <table cellpadding="0" cellspacing="0" border="0">
548 <td class="md" nowrap valign="top"> void Server::SendChannel </td>
549 <td class="md" valign="top">( </td>
550 <td class="md" nowrap valign="top"><a class="el" href="classuserrec.html">userrec</a> * </td>
551 <td class="mdname" nowrap> <em>User</em>, </td>
556 <td class="md" nowrap><a class="el" href="classchanrec.html">chanrec</a> * </td>
557 <td class="mdname" nowrap> <em>Channel</em>, </td>
562 <td class="md" nowrap>string </td>
563 <td class="mdname" nowrap> <em>s</em>, </td>
568 <td class="md" nowrap>bool </td>
569 <td class="mdname" nowrap> <em>IncludeSender</em></td>
573 <td class="md">) </td>
574 <td class="md" colspan="2"><code> [virtual]</code></td>
581 <table cellspacing=5 cellpadding=0 border=0>
589 Sends text from a user to a channel (mulicast).
591 This method writes a line of text to a channel, with the given user's nick/ident /host combination prepended, as used in PRIVMSG etc commands (see RFC 1459). If the IncludeSender flag is set, then the text is also sent back to the user from which it originated, as seen in MODE (see RFC 1459).
593 Definition at line <a class="el" href="modules_8cpp-source.html#l00093">93</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
595 <div class="fragment"><pre>00094 {
596 00095 <span class="keywordflow">if</span> (IncludeSender)
598 00097 WriteChannel(Channel,User,<span class="stringliteral">"%s"</span>,s.c_str());
600 00099 <span class="keywordflow">else</span>
602 00101 ChanExceptSender(Channel,User,<span class="stringliteral">"%s"</span>,s.c_str());
608 <a name="a10" doxytag="Server::SendCommon"></a><p>
609 <table width="100%" cellpadding="2" cellspacing="0" border="0">
612 <table cellpadding="0" cellspacing="0" border="0">
614 <td class="md" nowrap valign="top"> void Server::SendCommon </td>
615 <td class="md" valign="top">( </td>
616 <td class="md" nowrap valign="top"><a class="el" href="classuserrec.html">userrec</a> * </td>
617 <td class="mdname" nowrap> <em>User</em>, </td>
622 <td class="md" nowrap>string </td>
623 <td class="mdname" nowrap> <em>text</em>, </td>
628 <td class="md" nowrap>bool </td>
629 <td class="mdname" nowrap> <em>IncludeSender</em></td>
633 <td class="md">) </td>
634 <td class="md" colspan="2"><code> [virtual]</code></td>
641 <table cellspacing=5 cellpadding=0 border=0>
649 Sends text from a user to one or more channels (mulicast).
651 This method writes a line of text to all users which share a common channel with a given user, with the user's nick/ident/host combination prepended, as used in PRIVMSG etc commands (see RFC 1459). If the IncludeSender flag is set, then the text is also sent back to the user from which it originated, as seen in NICK (see RFC 1459). Otherwise, it is only sent to the other recipients, as seen in QUIT.
653 Definition at line <a class="el" href="modules_8cpp-source.html#l00110">110</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
655 <div class="fragment"><pre>00111 {
656 00112 <span class="keywordflow">if</span> (IncludeSender)
658 00114 WriteCommon(User,<span class="stringliteral">"%s"</span>,text.c_str());
660 00116 <span class="keywordflow">else</span>
662 00118 WriteCommonExcept(User,<span class="stringliteral">"%s"</span>,text.c_str());
668 <a name="a6" doxytag="Server::SendFrom"></a><p>
669 <table width="100%" cellpadding="2" cellspacing="0" border="0">
672 <table cellpadding="0" cellspacing="0" border="0">
674 <td class="md" nowrap valign="top"> void Server::SendFrom </td>
675 <td class="md" valign="top">( </td>
676 <td class="md" nowrap valign="top">int </td>
677 <td class="mdname" nowrap> <em>Socket</em>, </td>
682 <td class="md" nowrap><a class="el" href="classuserrec.html">userrec</a> * </td>
683 <td class="mdname" nowrap> <em>User</em>, </td>
688 <td class="md" nowrap>string </td>
689 <td class="mdname" nowrap> <em>s</em></td>
693 <td class="md">) </td>
694 <td class="md" colspan="2"><code> [virtual]</code></td>
701 <table cellspacing=5 cellpadding=0 border=0>
709 Sends text from a user to a socket.
711 This method writes a line of text to an established socket, with the given user's nick/ident /host combination prepended, as used in PRIVSG etc commands (see RFC 1459)
713 Definition at line <a class="el" href="modules_8cpp-source.html#l00083">83</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
715 <div class="fragment"><pre>00084 {
716 00085 WriteFrom(Socket,User,<span class="stringliteral">"%s"</span>,s.c_str());
721 <a name="a2" doxytag="Server::SendOpers"></a><p>
722 <table width="100%" cellpadding="2" cellspacing="0" border="0">
725 <table cellpadding="0" cellspacing="0" border="0">
727 <td class="md" nowrap valign="top"> void Server::SendOpers </td>
728 <td class="md" valign="top">( </td>
729 <td class="md" nowrap valign="top">string </td>
730 <td class="mdname1" valign="top" nowrap> <em>s</em> </td>
731 <td class="md" valign="top">) </td>
732 <td class="md" nowrap><code> [virtual]</code></td>
739 <table cellspacing=5 cellpadding=0 border=0>
747 Sends text to all opers.
749 This method sends a server notice to all opers with the usermode +s.
751 Definition at line <a class="el" href="modules_8cpp-source.html#l00063">63</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
753 <div class="fragment"><pre>00064 {
754 00065 WriteOpers(<span class="stringliteral">"%s"</span>,s.c_str());
759 <a name="a5" doxytag="Server::SendServ"></a><p>
760 <table width="100%" cellpadding="2" cellspacing="0" border="0">
763 <table cellpadding="0" cellspacing="0" border="0">
765 <td class="md" nowrap valign="top"> void Server::SendServ </td>
766 <td class="md" valign="top">( </td>
767 <td class="md" nowrap valign="top">int </td>
768 <td class="mdname" nowrap> <em>Socket</em>, </td>
773 <td class="md" nowrap>string </td>
774 <td class="mdname" nowrap> <em>s</em></td>
778 <td class="md">) </td>
779 <td class="md" colspan="2"><code> [virtual]</code></td>
786 <table cellspacing=5 cellpadding=0 border=0>
794 Sends text from the server to a socket.
796 This method writes a line of text to an established socket, with the servername prepended as used by numerics (see RFC 1459)
798 Definition at line <a class="el" href="modules_8cpp-source.html#l00078">78</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
800 <div class="fragment"><pre>00079 {
801 00080 WriteServ(Socket,<span class="stringliteral">"%s"</span>,s.c_str());
806 <a name="a7" doxytag="Server::SendTo"></a><p>
807 <table width="100%" cellpadding="2" cellspacing="0" border="0">
810 <table cellpadding="0" cellspacing="0" border="0">
812 <td class="md" nowrap valign="top"> void Server::SendTo </td>
813 <td class="md" valign="top">( </td>
814 <td class="md" nowrap valign="top"><a class="el" href="classuserrec.html">userrec</a> * </td>
815 <td class="mdname" nowrap> <em>Source</em>, </td>
820 <td class="md" nowrap><a class="el" href="classuserrec.html">userrec</a> * </td>
821 <td class="mdname" nowrap> <em>Dest</em>, </td>
826 <td class="md" nowrap>string </td>
827 <td class="mdname" nowrap> <em>s</em></td>
831 <td class="md">) </td>
832 <td class="md" colspan="2"><code> [virtual]</code></td>
839 <table cellspacing=5 cellpadding=0 border=0>
847 Sends text from a user to another user.
849 This method writes a line of text to a user, with a user's nick/ident /host combination prepended, as used in PRIVMSG etc commands (see RFC 1459)
851 Definition at line <a class="el" href="modules_8cpp-source.html#l00088">88</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
853 <div class="fragment"><pre>00089 {
854 00090 WriteTo(Source,Dest,<span class="stringliteral">"%s"</span>,s.c_str());
859 <a name="a11" doxytag="Server::SendWallops"></a><p>
860 <table width="100%" cellpadding="2" cellspacing="0" border="0">
863 <table cellpadding="0" cellspacing="0" border="0">
865 <td class="md" nowrap valign="top"> void Server::SendWallops </td>
866 <td class="md" valign="top">( </td>
867 <td class="md" nowrap valign="top"><a class="el" href="classuserrec.html">userrec</a> * </td>
868 <td class="mdname" nowrap> <em>User</em>, </td>
873 <td class="md" nowrap>string </td>
874 <td class="mdname" nowrap> <em>text</em></td>
878 <td class="md">) </td>
879 <td class="md" colspan="2"><code> [virtual]</code></td>
886 <table cellspacing=5 cellpadding=0 border=0>
894 Sends a WALLOPS message.
896 This method writes a WALLOPS message to all users with the +w flag, originating from the specified user.
898 Definition at line <a class="el" href="modules_8cpp-source.html#l00122">122</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
900 <div class="fragment"><pre>00123 {
901 00124 WriteWallOps(User,<span class="stringliteral">"%s"</span>,text.c_str());
906 <hr>The documentation for this class was generated from the following files:<ul>
907 <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>
908 <hr><address style="align: right;"><small>Generated on Thu Jan 23 20:28:59 2003 for InspIRCd by
909 <a href="http://www.doxygen.org/index.html">
910 <img src="doxygen.png" alt="doxygen" align="middle" border=0
911 width=110 height=53></a>1.3-rc2 </small></address>