From 78a96055c428d1970ece93dfb01902ac0d1699bd Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 4 Apr 2004 22:03:32 +0000 Subject: New documentation to document user/channel mode handling git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@380 e03df62e-2008-0410-955e-edbf42e46eb7 --- docs/module-doc/channels_8cpp-source.html | 144 ++++++++++++++++++++---------- 1 file changed, 98 insertions(+), 46 deletions(-) (limited to 'docs/module-doc/channels_8cpp-source.html') diff --git a/docs/module-doc/channels_8cpp-source.html b/docs/module-doc/channels_8cpp-source.html index 0ad69366d..bd341295b 100644 --- a/docs/module-doc/channels_8cpp-source.html +++ b/docs/module-doc/channels_8cpp-source.html @@ -5,56 +5,108 @@
00001 #include "inspircd_config.h" 00002 #include "channels.h" 00003 #include "inspircd.h" 00004 #include <stdio.h> -00005 -00006 chanrec::chanrec() -00007 { -00008 strcpy(name,""); -00009 strcpy(custom_modes,""); -00010 strcpy(topic,""); -00011 strcpy(setby,""); -00012 strcpy(key,""); -00013 created = topicset = limit = 0; -00014 topiclock = noexternal = inviteonly = moderated = secret = c_private = false; -00015 } -00016 -00017 void chanrec::SetCustomMode(char mode,bool mode_on) -00018 { -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 } -00042 -00043 void chanrec::SetCustomModeParam(char mode,char* parameter,bool mode_on) -00044 { -00045 } -00046 -00047 -00048 -
1.3-rc3
--
cgit v1.3.1-10-gc9f91