mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 11:09:04 -04:00
Missed some stuff
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3664 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
a323e20162
commit
871dd3c93b
@ -34,8 +34,8 @@ class CommandParser
|
|||||||
command_table cmdlist;
|
command_table cmdlist;
|
||||||
|
|
||||||
CommandParser();
|
CommandParser();
|
||||||
bool CallHandler(std::string &commandname,char **parameters, int pcnt, userrec *user);
|
bool CallHandler(const std::string &commandname,char **parameters, int pcnt, userrec *user);
|
||||||
bool IsValidCommand(std::string &commandname, int pcnt, userrec * user);
|
bool IsValidCommand(const std::string &commandname, int pcnt, userrec * user);
|
||||||
int LoopCall(command_t *fn, char **parameters, int pcnt, userrec *u, int start, int end, int joins);
|
int LoopCall(command_t *fn, char **parameters, int pcnt, userrec *u, int start, int end, int joins);
|
||||||
void ProcessBuffer(const char* cmdbuf,userrec *user);
|
void ProcessBuffer(const char* cmdbuf,userrec *user);
|
||||||
bool RemoveCommands(const char* source);
|
bool RemoveCommands(const char* source);
|
||||||
|
@ -1373,7 +1373,7 @@ class Server : public classbase
|
|||||||
* back to the user from which it originated, as seen in NICK (see RFC 1459). Otherwise, it
|
* back to the user from which it originated, as seen in NICK (see RFC 1459). Otherwise, it
|
||||||
* is only sent to the other recipients, as seen in QUIT.
|
* is only sent to the other recipients, as seen in QUIT.
|
||||||
*/
|
*/
|
||||||
virtual void SendCommon(userrec* User, std::string text, bool IncludeSender);
|
virtual void SendCommon(userrec* User, const std::string &text, bool IncludeSender);
|
||||||
|
|
||||||
/** Sends a WALLOPS message.
|
/** Sends a WALLOPS message.
|
||||||
* This method writes a WALLOPS message to all users with the +w flag, originating from the
|
* This method writes a WALLOPS message to all users with the +w flag, originating from the
|
||||||
@ -1608,14 +1608,14 @@ class Server : public classbase
|
|||||||
* dhost member of userrec, as any change applied via this method will be propogated to any
|
* dhost member of userrec, as any change applied via this method will be propogated to any
|
||||||
* linked servers.
|
* linked servers.
|
||||||
*/
|
*/
|
||||||
virtual void ChangeHost(userrec* user, std::string host);
|
virtual void ChangeHost(userrec* user, const std::string &host);
|
||||||
|
|
||||||
/** Change GECOS (fullname) of a user.
|
/** Change GECOS (fullname) of a user.
|
||||||
* You should always call this method to change a user's GECOS rather than writing directly to the
|
* You should always call this method to change a user's GECOS rather than writing directly to the
|
||||||
* fullname member of userrec, as any change applied via this method will be propogated to any
|
* fullname member of userrec, as any change applied via this method will be propogated to any
|
||||||
* linked servers.
|
* linked servers.
|
||||||
*/
|
*/
|
||||||
virtual void ChangeGECOS(userrec* user, std::string gecos);
|
virtual void ChangeGECOS(userrec* user, const std::string &gecos);
|
||||||
|
|
||||||
/** Returns true if the servername you give is ulined.
|
/** Returns true if the servername you give is ulined.
|
||||||
* ULined servers have extra privilages. They are allowed to change nicknames on remote servers,
|
* ULined servers have extra privilages. They are allowed to change nicknames on remote servers,
|
||||||
@ -1661,7 +1661,7 @@ class Server : public classbase
|
|||||||
* to indicate who or what sent the data, usually this is the nickname of a person, or a server
|
* to indicate who or what sent the data, usually this is the nickname of a person, or a server
|
||||||
* name.
|
* name.
|
||||||
*/
|
*/
|
||||||
virtual void AddQLine(long duration, const std::string &source, const std::string &reason, const std::string nickname);
|
virtual void AddQLine(long duration, const std::string &source, const std::string &reason, const std::string &nickname);
|
||||||
|
|
||||||
/** Adds a Z-line
|
/** Adds a Z-line
|
||||||
* The Z-line is propogated to all of the servers in the mesh and enforced as soon as it is added.
|
* The Z-line is propogated to all of the servers in the mesh and enforced as soon as it is added.
|
||||||
@ -1745,7 +1745,7 @@ class Server : public classbase
|
|||||||
|
|
||||||
virtual chanrec* GetChannelIndex(long index);
|
virtual chanrec* GetChannelIndex(long index);
|
||||||
|
|
||||||
void DumpText(userrec* User, std::string LinePrefix, stringstream &TextStream);
|
void DumpText(userrec* User, const std::string &LinePrefix, stringstream &TextStream);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -307,7 +307,7 @@ int CommandParser::LoopCall(command_t* fn, char **parameters, int pcnt, userrec
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CommandParser::IsValidCommand(std::string &commandname, int pcnt, userrec * user)
|
bool CommandParser::IsValidCommand(const std::string &commandname, int pcnt, userrec * user)
|
||||||
{
|
{
|
||||||
nspace::hash_map<std::string,command_t*>::iterator n = cmdlist.find(commandname);
|
nspace::hash_map<std::string,command_t*>::iterator n = cmdlist.find(commandname);
|
||||||
|
|
||||||
@ -330,7 +330,7 @@ bool CommandParser::IsValidCommand(std::string &commandname, int pcnt, userrec *
|
|||||||
|
|
||||||
// calls a handler function for a command
|
// calls a handler function for a command
|
||||||
|
|
||||||
bool CommandParser::CallHandler(std::string &commandname,char **parameters, int pcnt, userrec *user)
|
bool CommandParser::CallHandler(const std::string &commandname,char **parameters, int pcnt, userrec *user)
|
||||||
{
|
{
|
||||||
nspace::hash_map<std::string,command_t*>::iterator n = cmdlist.find(commandname);
|
nspace::hash_map<std::string,command_t*>::iterator n = cmdlist.find(commandname);
|
||||||
|
|
||||||
|
@ -475,7 +475,7 @@ void Server::QuitUser(userrec* user, const std::string &reason)
|
|||||||
kill_link(user,reason.c_str());
|
kill_link(user,reason.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Server::IsUlined(std::string server)
|
bool Server::IsUlined(const std::string &server)
|
||||||
{
|
{
|
||||||
return is_uline(server.c_str());
|
return is_uline(server.c_str());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user