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>message.h File Reference</title>
4 <link href="inspircd.css" rel="stylesheet" type="text/css">
6 <!-- Generated by Doxygen 1.3-rc3 -->
8 <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> </center>
9 <hr><h1>message.h File Reference</h1><code>#include <typeinfo></code><br>
10 <code>#include <iostream></code><br>
11 <code>#include <string></code><br>
12 <code>#include <deque></code><br>
13 <code>#include <sstream></code><br>
14 <code>#include <vector></code><br>
15 <code>#include "<a class="el" href="users_8h-source.html">users.h</a>"</code><br>
16 <code>#include "<a class="el" href="channels_8h-source.html">channels.h</a>"</code><br>
19 Include dependency graph for message.h:<p><center><img src="message_8h__incl.gif" border="0" usemap="#message.h_map" alt="Include dependency graph"></center>
20 <map name="message.h_map">
21 <area href="users_8h.html" shape="rect" coords="351,155,401,176" alt="">
22 <area href="channels_8h.html" shape="rect" coords="476,86,548,107" alt="">
23 <area href="connection_8h.html" shape="rect" coords="321,86,401,107" alt="">
27 This graph shows which files directly or indirectly include this file:<p><center><img src="message_8h__dep__incl.gif" border="0" usemap="#message.hdep_map" alt="Included by dependency graph"></center>
28 <map name="message.hdep_map">
29 <area href="modules_8cpp.html" shape="rect" coords="7,16,89,37" alt="">
33 <a href="message_8h-source.html">Go to the source code of this file.</a><table border=0 cellpadding=0 cellspacing=0>
35 <tr><td colspan=2><br><h2>Functions</h2></td></tr>
36 <tr><td nowrap align=right valign=top>int </td><td valign=bottom><a class="el" href="message_8h.html#a0">common_channels</a> (<a class="el" href="classuserrec.html">userrec</a> *u, <a class="el" href="classuserrec.html">userrec</a> *u2)</td></tr>
37 <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="message_8h.html#a1">chop</a> (char *str)</td></tr>
38 <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="message_8h.html#a2">tidystring</a> (char *str)</td></tr>
39 <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="message_8h.html#a3">safedelete</a> (<a class="el" href="classchanrec.html">chanrec</a> *p)</td></tr>
40 <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="message_8h.html#a4">safedelete</a> (<a class="el" href="classuserrec.html">userrec</a> *p)</td></tr>
41 <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="message_8h.html#a5">Blocking</a> (int s)</td></tr>
42 <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="message_8h.html#a6">NonBlocking</a> (int s)</td></tr>
43 <tr><td nowrap align=right valign=top>int </td><td valign=bottom><a class="el" href="message_8h.html#a7">CleanAndResolve</a> (char *resolvedHost, const char *unresolvedHost)</td></tr>
44 <tr><td nowrap align=right valign=top>int </td><td valign=bottom><a class="el" href="message_8h.html#a8">c_count</a> (<a class="el" href="classuserrec.html">userrec</a> *u)</td></tr>
45 <tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="message_8h.html#a9">hasumode</a> (<a class="el" href="classuserrec.html">userrec</a> *user, char mode)</td></tr>
46 <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="message_8h.html#a10">ChangeName</a> (<a class="el" href="classuserrec.html">userrec</a> *user, const char *gecos)</td></tr>
47 <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="message_8h.html#a11">ChangeDisplayedHost</a> (<a class="el" href="classuserrec.html">userrec</a> *user, const char *host)</td></tr>
48 <tr><td nowrap align=right valign=top>int </td><td valign=bottom><a class="el" href="message_8h.html#a12">isident</a> (const char *n)</td></tr>
49 <tr><td nowrap align=right valign=top>int </td><td valign=bottom><a class="el" href="message_8h.html#a13">isnick</a> (const char *n)</td></tr>
50 <tr><td nowrap align=right valign=top>char * </td><td valign=bottom><a class="el" href="message_8h.html#a14">cmode</a> (<a class="el" href="classuserrec.html">userrec</a> *user, <a class="el" href="classchanrec.html">chanrec</a> *chan)</td></tr>
51 <tr><td nowrap align=right valign=top>int </td><td valign=bottom><a class="el" href="message_8h.html#a15">cstatus</a> (<a class="el" href="classuserrec.html">userrec</a> *user, <a class="el" href="classchanrec.html">chanrec</a> *chan)</td></tr>
52 <tr><td nowrap align=right valign=top>int </td><td valign=bottom><a class="el" href="message_8h.html#a16">has_channel</a> (<a class="el" href="classuserrec.html">userrec</a> *u, <a class="el" href="classchanrec.html">chanrec</a> *c)</td></tr>
53 <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="message_8h.html#a17">TidyBan</a> (char *ban)</td></tr>
54 <tr><td nowrap align=right valign=top>char * </td><td valign=bottom><a class="el" href="message_8h.html#a18">chlist</a> (<a class="el" href="classuserrec.html">userrec</a> *user)</td></tr>
55 <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="message_8h.html#a19">send_network_quit</a> (const char *nick, const char *reason)</td></tr>
57 <hr><h2>Function Documentation</h2>
58 <a name="a5" doxytag="message.h::Blocking"></a><p>
59 <table width="100%" cellpadding="2" cellspacing="0" border="0">
62 <table cellpadding="0" cellspacing="0" border="0">
64 <td class="md" nowrap valign="top"> void Blocking </td>
65 <td class="md" valign="top">( </td>
66 <td class="md" nowrap valign="top">int </td>
67 <td class="mdname1" valign="top" nowrap> <em>s</em> </td>
68 <td class="md" valign="top">) </td>
69 <td class="md" nowrap></td>
76 <table cellspacing=5 cellpadding=0 border=0>
87 <a name="a8" doxytag="message.h::c_count"></a><p>
88 <table width="100%" cellpadding="2" cellspacing="0" border="0">
91 <table cellpadding="0" cellspacing="0" border="0">
93 <td class="md" nowrap valign="top"> int c_count </td>
94 <td class="md" valign="top">( </td>
95 <td class="md" nowrap valign="top"><a class="el" href="classuserrec.html">userrec</a> * </td>
96 <td class="mdname1" valign="top" nowrap> <em>u</em> </td>
97 <td class="md" valign="top">) </td>
98 <td class="md" nowrap></td>
105 <table cellspacing=5 cellpadding=0 border=0>
116 <a name="a11" doxytag="message.h::ChangeDisplayedHost"></a><p>
117 <table width="100%" cellpadding="2" cellspacing="0" border="0">
120 <table cellpadding="0" cellspacing="0" border="0">
122 <td class="md" nowrap valign="top"> void ChangeDisplayedHost </td>
123 <td class="md" valign="top">( </td>
124 <td class="md" nowrap valign="top"><a class="el" href="classuserrec.html">userrec</a> * </td>
125 <td class="mdname" nowrap> <em>user</em>, </td>
130 <td class="md" nowrap>const char * </td>
131 <td class="mdname" nowrap> <em>host</em></td>
135 <td class="md">) </td>
136 <td class="md" colspan="2"></td>
143 <table cellspacing=5 cellpadding=0 border=0>
153 Referenced by <a class="el" href="modules_8cpp-source.html#l00270">Server::ChangeHost()</a>. </td>
156 <a name="a10" doxytag="message.h::ChangeName"></a><p>
157 <table width="100%" cellpadding="2" cellspacing="0" border="0">
160 <table cellpadding="0" cellspacing="0" border="0">
162 <td class="md" nowrap valign="top"> void ChangeName </td>
163 <td class="md" valign="top">( </td>
164 <td class="md" nowrap valign="top"><a class="el" href="classuserrec.html">userrec</a> * </td>
165 <td class="mdname" nowrap> <em>user</em>, </td>
170 <td class="md" nowrap>const char * </td>
171 <td class="mdname" nowrap> <em>gecos</em></td>
175 <td class="md">) </td>
176 <td class="md" colspan="2"></td>
183 <table cellspacing=5 cellpadding=0 border=0>
193 Referenced by <a class="el" href="modules_8cpp-source.html#l00275">Server::ChangeGECOS()</a>. </td>
196 <a name="a18" doxytag="message.h::chlist"></a><p>
197 <table width="100%" cellpadding="2" cellspacing="0" border="0">
200 <table cellpadding="0" cellspacing="0" border="0">
202 <td class="md" nowrap valign="top"> char* chlist </td>
203 <td class="md" valign="top">( </td>
204 <td class="md" nowrap valign="top"><a class="el" href="classuserrec.html">userrec</a> * </td>
205 <td class="mdname1" valign="top" nowrap> <em>user</em> </td>
206 <td class="md" valign="top">) </td>
207 <td class="md" nowrap></td>
214 <table cellspacing=5 cellpadding=0 border=0>
225 <a name="a1" doxytag="message.h::chop"></a><p>
226 <table width="100%" cellpadding="2" cellspacing="0" border="0">
229 <table cellpadding="0" cellspacing="0" border="0">
231 <td class="md" nowrap valign="top"> void chop </td>
232 <td class="md" valign="top">( </td>
233 <td class="md" nowrap valign="top">char * </td>
234 <td class="mdname1" valign="top" nowrap> <em>str</em> </td>
235 <td class="md" valign="top">) </td>
236 <td class="md" nowrap></td>
243 <table cellspacing=5 cellpadding=0 border=0>
254 <a name="a7" doxytag="message.h::CleanAndResolve"></a><p>
255 <table width="100%" cellpadding="2" cellspacing="0" border="0">
258 <table cellpadding="0" cellspacing="0" border="0">
260 <td class="md" nowrap valign="top"> int CleanAndResolve </td>
261 <td class="md" valign="top">( </td>
262 <td class="md" nowrap valign="top">char * </td>
263 <td class="mdname" nowrap> <em>resolvedHost</em>, </td>
268 <td class="md" nowrap>const char * </td>
269 <td class="mdname" nowrap> <em>unresolvedHost</em></td>
273 <td class="md">) </td>
274 <td class="md" colspan="2"></td>
281 <table cellspacing=5 cellpadding=0 border=0>
292 <a name="a14" doxytag="message.h::cmode"></a><p>
293 <table width="100%" cellpadding="2" cellspacing="0" border="0">
296 <table cellpadding="0" cellspacing="0" border="0">
298 <td class="md" nowrap valign="top"> char* cmode </td>
299 <td class="md" valign="top">( </td>
300 <td class="md" nowrap valign="top"><a class="el" href="classuserrec.html">userrec</a> * </td>
301 <td class="mdname" nowrap> <em>user</em>, </td>
306 <td class="md" nowrap><a class="el" href="classchanrec.html">chanrec</a> * </td>
307 <td class="mdname" nowrap> <em>chan</em></td>
311 <td class="md">) </td>
312 <td class="md" colspan="2"></td>
319 <table cellspacing=5 cellpadding=0 border=0>
329 Referenced by <a class="el" href="modules_8cpp-source.html#l00295">Server::ChanMode()</a>. </td>
332 <a name="a0" doxytag="message.h::common_channels"></a><p>
333 <table width="100%" cellpadding="2" cellspacing="0" border="0">
336 <table cellpadding="0" cellspacing="0" border="0">
338 <td class="md" nowrap valign="top"> int common_channels </td>
339 <td class="md" valign="top">( </td>
340 <td class="md" nowrap valign="top"><a class="el" href="classuserrec.html">userrec</a> * </td>
341 <td class="mdname" nowrap> <em>u</em>, </td>
346 <td class="md" nowrap><a class="el" href="classuserrec.html">userrec</a> * </td>
347 <td class="mdname" nowrap> <em>u2</em></td>
351 <td class="md">) </td>
352 <td class="md" colspan="2"></td>
359 <table cellspacing=5 cellpadding=0 border=0>
369 Referenced by <a class="el" href="modules_8cpp-source.html#l00248">Server::CommonChannels()</a>. </td>
372 <a name="a15" doxytag="message.h::cstatus"></a><p>
373 <table width="100%" cellpadding="2" cellspacing="0" border="0">
376 <table cellpadding="0" cellspacing="0" border="0">
378 <td class="md" nowrap valign="top"> int cstatus </td>
379 <td class="md" valign="top">( </td>
380 <td class="md" nowrap valign="top"><a class="el" href="classuserrec.html">userrec</a> * </td>
381 <td class="mdname" nowrap> <em>user</em>, </td>
386 <td class="md" nowrap><a class="el" href="classchanrec.html">chanrec</a> * </td>
387 <td class="mdname" nowrap> <em>chan</em></td>
391 <td class="md">) </td>
392 <td class="md" colspan="2"></td>
399 <table cellspacing=5 cellpadding=0 border=0>
410 <a name="a16" doxytag="message.h::has_channel"></a><p>
411 <table width="100%" cellpadding="2" cellspacing="0" border="0">
414 <table cellpadding="0" cellspacing="0" border="0">
416 <td class="md" nowrap valign="top"> int has_channel </td>
417 <td class="md" valign="top">( </td>
418 <td class="md" nowrap valign="top"><a class="el" href="classuserrec.html">userrec</a> * </td>
419 <td class="mdname" nowrap> <em>u</em>, </td>
424 <td class="md" nowrap><a class="el" href="classchanrec.html">chanrec</a> * </td>
425 <td class="mdname" nowrap> <em>c</em></td>
429 <td class="md">) </td>
430 <td class="md" colspan="2"></td>
437 <table cellspacing=5 cellpadding=0 border=0>
448 <a name="a9" doxytag="message.h::hasumode"></a><p>
449 <table width="100%" cellpadding="2" cellspacing="0" border="0">
452 <table cellpadding="0" cellspacing="0" border="0">
454 <td class="md" nowrap valign="top"> bool hasumode </td>
455 <td class="md" valign="top">( </td>
456 <td class="md" nowrap valign="top"><a class="el" href="classuserrec.html">userrec</a> * </td>
457 <td class="mdname" nowrap> <em>user</em>, </td>
462 <td class="md" nowrap>char </td>
463 <td class="mdname" nowrap> <em>mode</em></td>
467 <td class="md">) </td>
468 <td class="md" colspan="2"></td>
475 <table cellspacing=5 cellpadding=0 border=0>
486 <a name="a12" doxytag="message.h::isident"></a><p>
487 <table width="100%" cellpadding="2" cellspacing="0" border="0">
490 <table cellpadding="0" cellspacing="0" border="0">
492 <td class="md" nowrap valign="top"> int isident </td>
493 <td class="md" valign="top">( </td>
494 <td class="md" nowrap valign="top">const char * </td>
495 <td class="mdname1" valign="top" nowrap> <em>n</em> </td>
496 <td class="md" valign="top">) </td>
497 <td class="md" nowrap></td>
504 <table cellspacing=5 cellpadding=0 border=0>
515 <a name="a13" doxytag="message.h::isnick"></a><p>
516 <table width="100%" cellpadding="2" cellspacing="0" border="0">
519 <table cellpadding="0" cellspacing="0" border="0">
521 <td class="md" nowrap valign="top"> int isnick </td>
522 <td class="md" valign="top">( </td>
523 <td class="md" nowrap valign="top">const char * </td>
524 <td class="mdname1" valign="top" nowrap> <em>n</em> </td>
525 <td class="md" valign="top">) </td>
526 <td class="md" nowrap></td>
533 <table cellspacing=5 cellpadding=0 border=0>
543 Referenced by <a class="el" href="modules_8cpp-source.html#l00280">Server::IsNick()</a>. </td>
546 <a name="a6" doxytag="message.h::NonBlocking"></a><p>
547 <table width="100%" cellpadding="2" cellspacing="0" border="0">
550 <table cellpadding="0" cellspacing="0" border="0">
552 <td class="md" nowrap valign="top"> void NonBlocking </td>
553 <td class="md" valign="top">( </td>
554 <td class="md" nowrap valign="top">int </td>
555 <td class="mdname1" valign="top" nowrap> <em>s</em> </td>
556 <td class="md" valign="top">) </td>
557 <td class="md" nowrap></td>
564 <table cellspacing=5 cellpadding=0 border=0>
575 <a name="a4" doxytag="message.h::safedelete"></a><p>
576 <table width="100%" cellpadding="2" cellspacing="0" border="0">
579 <table cellpadding="0" cellspacing="0" border="0">
581 <td class="md" nowrap valign="top"> void safedelete </td>
582 <td class="md" valign="top">( </td>
583 <td class="md" nowrap valign="top"><a class="el" href="classuserrec.html">userrec</a> * </td>
584 <td class="mdname1" valign="top" nowrap> <em>p</em> </td>
585 <td class="md" valign="top">) </td>
586 <td class="md" nowrap></td>
593 <table cellspacing=5 cellpadding=0 border=0>
604 <a name="a3" doxytag="message.h::safedelete"></a><p>
605 <table width="100%" cellpadding="2" cellspacing="0" border="0">
608 <table cellpadding="0" cellspacing="0" border="0">
610 <td class="md" nowrap valign="top"> void safedelete </td>
611 <td class="md" valign="top">( </td>
612 <td class="md" nowrap valign="top"><a class="el" href="classchanrec.html">chanrec</a> * </td>
613 <td class="mdname1" valign="top" nowrap> <em>p</em> </td>
614 <td class="md" valign="top">) </td>
615 <td class="md" nowrap></td>
622 <table cellspacing=5 cellpadding=0 border=0>
633 <a name="a19" doxytag="message.h::send_network_quit"></a><p>
634 <table width="100%" cellpadding="2" cellspacing="0" border="0">
637 <table cellpadding="0" cellspacing="0" border="0">
639 <td class="md" nowrap valign="top"> void send_network_quit </td>
640 <td class="md" valign="top">( </td>
641 <td class="md" nowrap valign="top">const char * </td>
642 <td class="mdname" nowrap> <em>nick</em>, </td>
647 <td class="md" nowrap>const char * </td>
648 <td class="mdname" nowrap> <em>reason</em></td>
652 <td class="md">) </td>
653 <td class="md" colspan="2"></td>
660 <table cellspacing=5 cellpadding=0 border=0>
670 Referenced by <a class="el" href="modules_8cpp-source.html#l00176">Server::QuitUser()</a>. </td>
673 <a name="a17" doxytag="message.h::TidyBan"></a><p>
674 <table width="100%" cellpadding="2" cellspacing="0" border="0">
677 <table cellpadding="0" cellspacing="0" border="0">
679 <td class="md" nowrap valign="top"> void TidyBan </td>
680 <td class="md" valign="top">( </td>
681 <td class="md" nowrap valign="top">char * </td>
682 <td class="mdname1" valign="top" nowrap> <em>ban</em> </td>
683 <td class="md" valign="top">) </td>
684 <td class="md" nowrap></td>
691 <table cellspacing=5 cellpadding=0 border=0>
702 <a name="a2" doxytag="message.h::tidystring"></a><p>
703 <table width="100%" cellpadding="2" cellspacing="0" border="0">
706 <table cellpadding="0" cellspacing="0" border="0">
708 <td class="md" nowrap valign="top"> void tidystring </td>
709 <td class="md" valign="top">( </td>
710 <td class="md" nowrap valign="top">char * </td>
711 <td class="mdname1" valign="top" nowrap> <em>str</em> </td>
712 <td class="md" valign="top">) </td>
713 <td class="md" nowrap></td>
720 <table cellspacing=5 cellpadding=0 border=0>
731 <hr><address style="align: right;"><small>Generated on Thu Apr 29 16:21:52 2004 for InspIRCd by
732 <a href="http://www.doxygen.org/index.html">
733 <img src="doxygen.png" alt="doxygen" align="middle" border=0
734 width=110 height=53></a>1.3-rc3 </small></address>