From abdb186046bcdd83aefbc4171a00bd1ad7ec963c Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 3 Apr 2004 15:46:53 +0000 Subject: Added support for module-defined chanmodes with no parameters Fixed minor typo in example conf Added new stylesheet and docs git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@362 e03df62e-2008-0410-955e-edbf42e46eb7 --- docs/module-doc/classchanrec.html | 44 +++++++++++++++++++++++++++++++-------- 1 file changed, 35 insertions(+), 9 deletions(-) (limited to 'docs/module-doc/classchanrec.html') diff --git a/docs/module-doc/classchanrec.html b/docs/module-doc/classchanrec.html index 24f19b02d..7d4a1a061 100644 --- a/docs/module-doc/classchanrec.html +++ b/docs/module-doc/classchanrec.html @@ -1,7 +1,7 @@ chanrec class Reference - +
@@ -25,7 +25,7 @@ Inheritance diagram for chanrec:

SetCustomMode (char mode, bool mode_on)  Sets or unsets a custom mode in the channels info.

void SetCustomModeParam (char mode, char *parameter, bool mode_on) - Sets or unsets the parameterrs for a custom mode in a channels info.

Sets or unsets the parameters for a custom mode in a channels info.

 chanrec ()  Creates a channel record and initialises it with default values.

virtual ~chanrec () @@ -189,8 +189,32 @@ Sets or unsets a custom mode in the channels info.

Definition at line 17 of file channels.cpp.

+References custom_modes. +

00018 {
-00019 }
+00019         if (mode_on) {
+00020                 char m[3];
+00021                 m[0] = mode;
+00022                 m[1] = '\0';
+00023                 if (!strchr(this->custom_modes,mode))
+00024                 {
+00025                         strncat(custom_modes,m,MAXMODES);
+00026                 }
+00027                 log(DEBUG,"Custom mode %c set",mode);
+00028         }
+00029         else {
+00030                 char temp[MAXMODES];
+00031                 int count = 0;
+00032                 for (int q = 0; q < strlen(custom_modes); q++) {
+00033                         if (custom_modes[q] != mode) {
+00034                                 temp[count++] = mode;
+00035                         }
+00036                 }
+00037                 temp[count] = '\0';
+00038                 strncpy(custom_modes,temp,MAXMODES);
+00039                 log(DEBUG,"Custom mode %c removed",mode);
+00040         }
+00041 }
 
@@ -235,14 +259,14 @@ Definition at line 17

-Sets or unsets the parameterrs for a custom mode in a channels info. +Sets or unsets the parameters for a custom mode in a channels info.

-Definition at line 21 of file channels.cpp. +Definition at line 43 of file channels.cpp.

-

00022 {
-00023 }
+
00044 {
+00045 }
 
@@ -352,7 +376,9 @@ Custom modes for the channel.

Plugins may use this field in any way they see fit.

-Definition at line 79 of file channels.h. +Definition at line 79 of file channels.h. +

+Referenced by SetCustomMode().

@@ -657,7 +683,7 @@ Referenced by chanrec()


The documentation for this class was generated from the following files: -
Generated on Fri Apr 2 14:46:12 2004 for InspIRCd by +
Generated on Sat Apr 3 16:36:10 2004 for InspIRCd by doxygen1.3-rc3
-- cgit v1.2.3