diff options
| author | Markus Mittendrein <git@maxmitti.tk> | 2015-10-06 14:40:25 +0200 |
|---|---|---|
| committer | Markus Mittendrein <git@maxmitti.tk> | 2015-10-07 14:50:41 +0200 |
| commit | 50f4bac055ca5ddea57a63aa880e7107d0e2366a (patch) | |
| tree | 9b4f8c2d0147226ecc29d8904ee16c773db1c377 /src/crsm.hpp | |
| parent | dc91ccc4ce375740c55cb44506c6561fc40fcc62 (diff) | |
| download | manager-50f4bac055ca5ddea57a63aa880e7107d0e2366a.tar.gz manager-50f4bac055ca5ddea57a63aa880e7107d0e2366a.zip | |
Allow overriding the default function called on a command-group
Diffstat (limited to 'src/crsm.hpp')
| -rw-r--r-- | src/crsm.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crsm.hpp b/src/crsm.hpp index 3f10471..508a367 100644 --- a/src/crsm.hpp +++ b/src/crsm.hpp @@ -203,7 +203,7 @@ private: void ircSetIngameChannelTopic(); 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 = ""); + 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); |
