summaryrefslogtreecommitdiffstats
path: root/src/crsm.hpp
diff options
context:
space:
mode:
authorMarkus Mittendrein <git@maxmitti.tk>2015-11-08 01:59:05 +0100
committerMarkus Mittendrein <git@maxmitti.tk>2015-11-08 03:03:44 +0100
commitb63aed7253a307a4011d2a39e51dcc584e90d372 (patch)
tree7f3a4c2bed762eaf2cb8cbda179bcb9db77e4ceb /src/crsm.hpp
parent5033d46d8d0383b7d176fc33b18a280d41ed0d41 (diff)
downloadmanager-b63aed7253a307a4011d2a39e51dcc584e90d372.tar.gz
manager-b63aed7253a307a4011d2a39e51dcc584e90d372.zip
Allow creating command aliases
Diffstat (limited to 'src/crsm.hpp')
-rw-r--r--src/crsm.hpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/crsm.hpp b/src/crsm.hpp
index 247848f..56f2a29 100644
--- a/src/crsm.hpp
+++ b/src/crsm.hpp
@@ -256,9 +256,9 @@ private:
void addCommand(const QString& name, CmdFunction func, int interfaces = Clonk | IRC, UserType userType = User, const QString& shortDescription = "", const QString &argList = "", const QString &longDescription = "");
inline void addCommandGroup(const QString& name, int interfaces = Clonk | IRC, UserType userType = User, const QString& shortDescription = "", const QString &longDescription = "", CmdFunction defaultFunc = &CRSM::groupinfo);
bool cmdExists(const QString& name, ClientInterface interface);
- CmdFunctionRef* findCommand(const QString& cmd, ClientInterface interface);
- CmdFunctionRef* findCommand(QStringList &&cmd, ClientInterface interface);
- bool cmd(const QString& cmd, const ClientInfo& client);
+ CmdFunctionRef* findCommand(const QString& cmd, ClientInterface interface, QString& args);
+ CmdFunctionRef* findCommand(QStringList &&cmd, ClientInterface interface, QString& args);
+ bool cmd(const QString &cmd, const ClientInfo& client);
void rightsFailMessage(const ClientInfo& info, UserType minUserType);
UserType clientUserType(const ClientInfo& client);
@@ -291,6 +291,7 @@ private:
int findWishFromUser(const ClientInfo& client);
QString getCommand(const QString& message);
bool isChannelName(const QString& name);
+ void substituteCommandAlias(QString& command);
CMD_FUNCTION(help);
CMD_FUNCTION(passToClonk);