From 1ea860b5708d065f9ed51234fc031969215fd806 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 2 Apr 2004 13:47:31 +0000 Subject: Updated documentation to document Server::SendMode git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@356 e03df62e-2008-0410-955e-edbf42e46eb7 --- docs/module-doc/modules_8cpp-source.html | 346 ++++++++++++++++--------------- 1 file changed, 175 insertions(+), 171 deletions(-) (limited to 'docs/module-doc/modules_8cpp-source.html') diff --git a/docs/module-doc/modules_8cpp-source.html b/docs/module-doc/modules_8cpp-source.html index 00de97628..7e31fec1d 100644 --- a/docs/module-doc/modules_8cpp-source.html +++ b/docs/module-doc/modules_8cpp-source.html @@ -133,191 +133,195 @@ 00125 createcommand(cmd,f,flags,minparams); 00126 } 00127 -00128 -00129 void Server::Send(int Socket, std::string s) -00130 { -00131 Write(Socket,"%s",s.c_str()); -00132 } -00133 -00134 void Server::SendServ(int Socket, std::string s) -00135 { -00136 WriteServ(Socket,"%s",s.c_str()); -00137 } -00138 -00139 void Server::SendFrom(int Socket, userrec* User, std::string s) -00140 { -00141 WriteFrom(Socket,User,"%s",s.c_str()); -00142 } -00143 -00144 void Server::SendTo(userrec* Source, userrec* Dest, std::string s) -00145 { -00146 WriteTo(Source,Dest,"%s",s.c_str()); -00147 } -00148 -00149 void Server::SendChannel(userrec* User, chanrec* Channel, std::string s,bool IncludeSender) -00150 { -00151 if (IncludeSender) -00152 { -00153 WriteChannel(Channel,User,"%s",s.c_str()); -00154 } -00155 else +00128 void Server::SendMode(char **parameters, int pcnt, userrec *user) +00129 { +00130 server_mode(parameters,pcnt,user); +00131 } +00132 +00133 void Server::Send(int Socket, std::string s) +00134 { +00135 Write(Socket,"%s",s.c_str()); +00136 } +00137 +00138 void Server::SendServ(int Socket, std::string s) +00139 { +00140 WriteServ(Socket,"%s",s.c_str()); +00141 } +00142 +00143 void Server::SendFrom(int Socket, userrec* User, std::string s) +00144 { +00145 WriteFrom(Socket,User,"%s",s.c_str()); +00146 } +00147 +00148 void Server::SendTo(userrec* Source, userrec* Dest, std::string s) +00149 { +00150 WriteTo(Source,Dest,"%s",s.c_str()); +00151 } +00152 +00153 void Server::SendChannel(userrec* User, chanrec* Channel, std::string s,bool IncludeSender) +00154 { +00155 if (IncludeSender) 00156 { -00157 ChanExceptSender(Channel,User,"%s",s.c_str()); +00157 WriteChannel(Channel,User,"%s",s.c_str()); 00158 } -00159 } -00160 -00161 bool Server::CommonChannels(userrec* u1, userrec* u2) -00162 { -00163 return (common_channels(u1,u2) != 0); -00164 } -00165 -00166 void Server::SendCommon(userrec* User, std::string text,bool IncludeSender) -00167 { -00168 if (IncludeSender) -00169 { -00170 WriteCommon(User,"%s",text.c_str()); -00171 } -00172 else +00159 else +00160 { +00161 ChanExceptSender(Channel,User,"%s",s.c_str()); +00162 } +00163 } +00164 +00165 bool Server::CommonChannels(userrec* u1, userrec* u2) +00166 { +00167 return (common_channels(u1,u2) != 0); +00168 } +00169 +00170 void Server::SendCommon(userrec* User, std::string text,bool IncludeSender) +00171 { +00172 if (IncludeSender) 00173 { -00174 WriteCommonExcept(User,"%s",text.c_str()); +00174 WriteCommon(User,"%s",text.c_str()); 00175 } -00176 } -00177 -00178 void Server::SendWallops(userrec* User, std::string text) -00179 { -00180 WriteWallOps(User,"%s",text.c_str()); -00181 } -00182 -00183 bool Server::IsNick(std::string nick) -00184 { -00185 return (isnick(nick.c_str()) != 0); -00186 } -00187 -00188 userrec* Server::FindNick(std::string nick) -00189 { -00190 return Find(nick); -00191 } -00192 -00193 chanrec* Server::FindChannel(std::string channel) -00194 { -00195 return FindChan(channel.c_str()); -00196 } -00197 -00198 std::string Server::ChanMode(userrec* User, chanrec* Chan) -00199 { -00200 return cmode(User,Chan); -00201 } -00202 -00203 std::string Server::GetServerName() -00204 { -00205 return getservername(); -00206 } -00207 -00208 std::string Server::GetNetworkName() -00209 { -00210 return getnetworkname(); -00211 } -00212 -00213 Admin Server::GetAdmin() -00214 { -00215 return Admin(getadminname(),getadminemail(),getadminnick()); -00216 } -00217 -00218 -00219 -00220 bool Server::AddExtendedMode(char modechar, int type, bool default_on, int params_when_on, int params_when_off) -00221 { -00222 } +00176 else +00177 { +00178 WriteCommonExcept(User,"%s",text.c_str()); +00179 } +00180 } +00181 +00182 void Server::SendWallops(userrec* User, std::string text) +00183 { +00184 WriteWallOps(User,"%s",text.c_str()); +00185 } +00186 +00187 bool Server::IsNick(std::string nick) +00188 { +00189 return (isnick(nick.c_str()) != 0); +00190 } +00191 +00192 userrec* Server::FindNick(std::string nick) +00193 { +00194 return Find(nick); +00195 } +00196 +00197 chanrec* Server::FindChannel(std::string channel) +00198 { +00199 return FindChan(channel.c_str()); +00200 } +00201 +00202 std::string Server::ChanMode(userrec* User, chanrec* Chan) +00203 { +00204 return cmode(User,Chan); +00205 } +00206 +00207 std::string Server::GetServerName() +00208 { +00209 return getservername(); +00210 } +00211 +00212 std::string Server::GetNetworkName() +00213 { +00214 return getnetworkname(); +00215 } +00216 +00217 Admin Server::GetAdmin() +00218 { +00219 return Admin(getadminname(),getadminemail(),getadminnick()); +00220 } +00221 +00222 00223 -00224 -00225 ConfigReader::ConfigReader() -00226 { -00227 fname = CONFIG_FILE; -00228 } -00229 -00230 -00231 ConfigReader::~ConfigReader() -00232 { -00233 } +00224 bool Server::AddExtendedMode(char modechar, int type, bool default_on, int params_when_on, int params_when_off) +00225 { +00226 } +00227 +00228 +00229 ConfigReader::ConfigReader() +00230 { +00231 fname = CONFIG_FILE; +00232 } +00233 00234 -00235 -00236 ConfigReader::ConfigReader(std::string filename) : fname(filename) { }; -00237 -00238 std::string ConfigReader::ReadValue(std::string tag, std::string name, int index) -00239 { -00240 char val[MAXBUF]; -00241 ReadConf(fname.c_str(),tag.c_str(),name.c_str(),index,val); -00242 return val; -00243 } -00244 -00245 -00246 int ConfigReader::Enumerate(std::string tag) -00247 { -00248 return EnumConf(fname.c_str(),tag.c_str()); -00249 } -00250 -00251 -00252 bool ConfigReader::Verify() -00253 { -00254 return true; -00255 } -00256 -00257 -00258 FileReader::FileReader(std::string filename) -00259 { -00260 file_cache c; -00261 readfile(c,filename.c_str()); -00262 this->fc = c; -00263 } -00264 -00265 FileReader::FileReader() -00266 { +00235 ConfigReader::~ConfigReader() +00236 { +00237 } +00238 +00239 +00240 ConfigReader::ConfigReader(std::string filename) : fname(filename) { }; +00241 +00242 std::string ConfigReader::ReadValue(std::string tag, std::string name, int index) +00243 { +00244 char val[MAXBUF]; +00245 ReadConf(fname.c_str(),tag.c_str(),name.c_str(),index,val); +00246 return val; +00247 } +00248 +00249 +00250 int ConfigReader::Enumerate(std::string tag) +00251 { +00252 return EnumConf(fname.c_str(),tag.c_str()); +00253 } +00254 +00255 +00256 bool ConfigReader::Verify() +00257 { +00258 return true; +00259 } +00260 +00261 +00262 FileReader::FileReader(std::string filename) +00263 { +00264 file_cache c; +00265 readfile(c,filename.c_str()); +00266 this->fc = c; 00267 } 00268 -00269 void FileReader::LoadFile(std::string filename) +00269 FileReader::FileReader() 00270 { -00271 file_cache c; -00272 readfile(c,filename.c_str()); -00273 this->fc = c; -00274 } -00275 -00276 -00277 FileReader::~FileReader() -00278 { -00279 } +00271 } +00272 +00273 void FileReader::LoadFile(std::string filename) +00274 { +00275 file_cache c; +00276 readfile(c,filename.c_str()); +00277 this->fc = c; +00278 } +00279 00280 -00281 bool FileReader::Exists() +00281 FileReader::~FileReader() 00282 { -00283 if (fc.size() == 0) -00284 { -00285 return(false); -00286 } -00287 else +00283 } +00284 +00285 bool FileReader::Exists() +00286 { +00287 if (fc.size() == 0) 00288 { -00289 return(true); +00289 return(false); 00290 } -00291 } -00292 -00293 std::string FileReader::GetLine(int x) -00294 { -00295 if ((x<0) || (x>fc.size())) -00296 return ""; -00297 return fc[x]; -00298 } -00299 -00300 int FileReader::FileSize() -00301 { -00302 return fc.size(); -00303 } -00304 -00305 -00306 std::vector<Module*> modules(255); -00307 std::vector<ircd_module*> factory(255); +00291 else +00292 { +00293 return(true); +00294 } +00295 } +00296 +00297 std::string FileReader::GetLine(int x) +00298 { +00299 if ((x<0) || (x>fc.size())) +00300 return ""; +00301 return fc[x]; +00302 } +00303 +00304 int FileReader::FileSize() +00305 { +00306 return fc.size(); +00307 } 00308 -00309 int MODCOUNT = -1; -00310 -00311 -
Generated on Fri Apr 2 13:37:27 2004 for InspIRCd by +00309 +00310 std::vector<Module*> modules(255); +00311 std::vector<ircd_module*> factory(255); +00312 +00313 int MODCOUNT = -1; +00314 +00315 +
Generated on Fri Apr 2 14:46:05 2004 for InspIRCd by doxygen1.3-rc3
-- cgit v1.2.3