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/channels_8cpp-source.html | 42 +++++++++++++++++++++++-------- 1 file changed, 32 insertions(+), 10 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 6962adf43..0ad69366d 100644 --- a/docs/module-doc/channels_8cpp-source.html +++ b/docs/module-doc/channels_8cpp-source.html @@ -1,7 +1,7 @@ channels.cpp Source File - +
@@ -24,15 +24,37 @@ 00016 00017 void chanrec::SetCustomMode(char mode,bool mode_on) 00018 { -00019 } -00020 -00021 void chanrec::SetCustomModeParam(char mode,char* parameter,bool mode_on) -00022 { -00023 } -00024 -00025 -00026 -
Generated on Fri Apr 2 14:46:04 2004 for InspIRCd by +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 +
Generated on Sat Apr 3 16:36:02 2004 for InspIRCd by doxygen1.3-rc3
-- cgit v1.2.3