From a753fb1bc711e10794e939e424f3cdd703116d82 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 2 Apr 2004 12:38:41 +0000 Subject: Added support for modules to create commands - this needs a proof-of-concept module yet, do not use unless you like to live dangerously. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@351 e03df62e-2008-0410-955e-edbf42e46eb7 --- docs/module-doc/classuserrec.html | 61 +++++++++++++++++++++------------------ 1 file changed, 33 insertions(+), 28 deletions(-) (limited to 'docs/module-doc/classuserrec.html') diff --git a/docs/module-doc/classuserrec.html b/docs/module-doc/classuserrec.html index e9c680250..371c15e9f 100644 --- a/docs/module-doc/classuserrec.html +++ b/docs/module-doc/classuserrec.html @@ -18,8 +18,8 @@ Inheritance diagram for userrec:

[legend]
Collaboration diagram for userrec:

Collaboration graph
- - + +
[legend]
List of all members. @@ -95,7 +95,7 @@ Definition at line 58 of fi

Definition at line 11 of file users.cpp.

-References connection::bytes_in, connection::bytes_out, ucrec::channel, chans, connection::cmds_in, connection::cmds_out, connection::fd, connection::haspassed, connection::idle_lastmsg, invites, connection::ip, connection::lastping, connection::nping, connection::port, connection::registered, and connection::signon. +References connection::bytes_in, connection::bytes_out, ucrec::channel, chans, connection::cmds_in, connection::cmds_out, connection::fd, connection::haspassed, connection::idle_lastmsg, invites, connection::ip, connection::lastping, connection::nping, connection::port, connection::registered, and connection::signon.

00012 {
 00013         // the PROPER way to do it, AVOID bzero at *ALL* costs
@@ -266,15 +266,15 @@ Adds a channel to a users invite list (invites them to a channel).
 

-Definition at line 60 of file users.cpp. +Definition at line 63 of file users.cpp.

References Invited::channel, and invites.

-

00061 {
-00062         Invited i;
-00063         strcpy(i.channel,channel);
-00064         invites.push_back(i);
-00065 }
+
00064 {
+00065         Invited i;
+00066         strcpy(i.channel,channel);
+00067         invites.push_back(i);
+00068 }
 
@@ -315,12 +315,15 @@ References invites.
00050 {
 00051         for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
 00052         {
-00053                 if (!strcasecmp(i->channel,channel))
-00054                 {
-00055                         return true;
-00056                 }
-00057         }
-00058 }
+00053                 if (i->channel) {
+00054                         if (!strcasecmp(i->channel,channel))
+00055                         {
+00056                                 return true;
+00057                         }
+00058                 }
+00059         }
+00060         return false;
+00061 }
 
@@ -354,20 +357,22 @@ Removes a channel from a users invite list.

This member function is called on successfully joining an invite only channel to which the user has previously been invited, to clear the invitation.

-Definition at line 67 of file users.cpp. +Definition at line 70 of file users.cpp.

References invites.

-

00068 {
-00069         for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
-00070         {
-00071                 if (!strcasecmp(i->channel,channel))
-00072                 {
-00073                         invites.erase(i);
-00074                         return;
-00075                 }
-00076         }
-00077 }
+
00071 {
+00072         for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
+00073         {
+00074                 if (i->channel) {
+00075                         if (!strcasecmp(i->channel,channel))
+00076                         {
+00077                                 invites.erase(i);
+00078                                 return;
+00079                         }
+00080                 }
+00081         }
+00082 }
 
@@ -527,7 +532,7 @@ A list of channels the user has a pending invite to.

Definition at line 64 of file users.h.

-Referenced by InviteTo(), IsInvited(), RemoveInvite(), and userrec(). +Referenced by InviteTo(), IsInvited(), RemoveInvite(), and userrec().

@@ -638,7 +643,7 @@ Definition at line 96 of fi


The documentation for this class was generated from the following files: -
Generated on Sun Mar 30 19:36:35 2003 for InspIRCd by +
Generated on Fri Apr 2 13:37:46 2004 for InspIRCd by doxygen1.3-rc3
-- cgit v1.2.3