diff options
author | Sadie Powell <sadie@witchery.services> | 2020-03-09 22:50:48 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2020-03-09 22:50:48 +0000 |
commit | feaceb2b037123c8687b3afdd80b2ffba61a5652 (patch) | |
tree | bd0ec68a92584d84f7113d8edb97bcc8b909ebfd /src | |
parent | 0643ce085c6a946fa52f2aa603f9f68d7a33a778 (diff) |
Fix unnecessary inlining in command handler constructors.
Diffstat (limited to 'src')
-rw-r--r-- | src/coremods/core_loadmodule.cpp | 8 | ||||
-rw-r--r-- | src/modules/m_check.cpp | 3 | ||||
-rw-r--r-- | src/modules/m_cycle.cpp | 3 | ||||
-rw-r--r-- | src/modules/m_globalload.cpp | 3 | ||||
-rw-r--r-- | src/modules/m_globops.cpp | 3 | ||||
-rw-r--r-- | src/modules/m_ojoin.cpp | 3 | ||||
-rw-r--r-- | src/modules/m_opermotd.cpp | 3 | ||||
-rw-r--r-- | src/modules/m_sajoin.cpp | 3 | ||||
-rw-r--r-- | src/modules/m_sakick.cpp | 3 | ||||
-rw-r--r-- | src/modules/m_samode.cpp | 3 | ||||
-rw-r--r-- | src/modules/m_sanick.cpp | 3 | ||||
-rw-r--r-- | src/modules/m_sapart.cpp | 3 | ||||
-rw-r--r-- | src/modules/m_saquit.cpp | 3 | ||||
-rw-r--r-- | src/modules/m_satopic.cpp | 3 | ||||
-rw-r--r-- | src/modules/m_sethost.cpp | 3 | ||||
-rw-r--r-- | src/modules/m_setident.cpp | 3 | ||||
-rw-r--r-- | src/modules/m_setidle.cpp | 3 | ||||
-rw-r--r-- | src/modules/m_swhois.cpp | 3 |
18 files changed, 41 insertions, 18 deletions
diff --git a/src/coremods/core_loadmodule.cpp b/src/coremods/core_loadmodule.cpp index a725d4322..6a54b6d1e 100644 --- a/src/coremods/core_loadmodule.cpp +++ b/src/coremods/core_loadmodule.cpp @@ -33,7 +33,13 @@ class CommandLoadmodule : public Command public: /** Constructor for loadmodule. */ - CommandLoadmodule ( Module* parent) : Command(parent,"LOADMODULE",1,1) { flags_needed='o'; syntax = "<modulename>"; } + CommandLoadmodule(Module* parent) + : Command(parent,"LOADMODULE", 1, 1) + { + flags_needed = 'o'; + syntax = "<modulename>"; + } + /** Handle command. * @param parameters The parameters to the command * @param user The user issuing the command diff --git a/src/modules/m_check.cpp b/src/modules/m_check.cpp index 25d85b6be..f74ddb922 100644 --- a/src/modules/m_check.cpp +++ b/src/modules/m_check.cpp @@ -150,7 +150,8 @@ class CommandCheck : public Command : Command(parent,"CHECK", 1) , snomaskmode(parent, "snomask") { - flags_needed = 'o'; syntax = "<nick>|<ipmask>|<hostmask>|<channel> [<servername>]"; + flags_needed = 'o'; + syntax = "<nick>|<ipmask>|<hostmask>|<channel> [<servername>]"; } CmdResult Handle(User* user, const Params& parameters) CXX11_OVERRIDE diff --git a/src/modules/m_cycle.cpp b/src/modules/m_cycle.cpp index ca8d8a374..50d233dc0 100644 --- a/src/modules/m_cycle.cpp +++ b/src/modules/m_cycle.cpp @@ -36,7 +36,8 @@ class CommandCycle : public SplitCommand CommandCycle(Module* Creator) : SplitCommand(Creator, "CYCLE", 1) { - Penalty = 3; syntax = "<channel> [:<reason>]"; + Penalty = 3; + syntax = "<channel> [:<reason>]"; } CmdResult HandleLocal(LocalUser* user, const Params& parameters) CXX11_OVERRIDE diff --git a/src/modules/m_globalload.cpp b/src/modules/m_globalload.cpp index 0f3d0c27f..cb7d6b5fd 100644 --- a/src/modules/m_globalload.cpp +++ b/src/modules/m_globalload.cpp @@ -124,7 +124,8 @@ class CommandGreloadmodule : public Command public: CommandGreloadmodule(Module* Creator) : Command(Creator, "GRELOADMODULE", 1) { - flags_needed = 'o'; syntax = "<modulename> [<servermask>]"; + flags_needed = 'o'; + syntax = "<modulename> [<servermask>]"; } CmdResult Handle(User* user, const Params& parameters) CXX11_OVERRIDE diff --git a/src/modules/m_globops.cpp b/src/modules/m_globops.cpp index 3ef26cec7..8b165424e 100644 --- a/src/modules/m_globops.cpp +++ b/src/modules/m_globops.cpp @@ -35,7 +35,8 @@ class CommandGlobops : public Command public: CommandGlobops(Module* Creator) : Command(Creator,"GLOBOPS", 1,1) { - flags_needed = 'o'; syntax = ":<message>"; + flags_needed = 'o'; + syntax = ":<message>"; } CmdResult Handle(User* user, const Params& parameters) CXX11_OVERRIDE diff --git a/src/modules/m_ojoin.cpp b/src/modules/m_ojoin.cpp index 3f7197ed0..150f3558e 100644 --- a/src/modules/m_ojoin.cpp +++ b/src/modules/m_ojoin.cpp @@ -37,7 +37,8 @@ class CommandOjoin : public SplitCommand : SplitCommand(parent, "OJOIN", 1) , npmh(&mode) { - flags_needed = 'o'; syntax = "<channel>"; + flags_needed = 'o'; + syntax = "<channel>"; active = false; } diff --git a/src/modules/m_opermotd.cpp b/src/modules/m_opermotd.cpp index 11bfc36c1..36998a4b3 100644 --- a/src/modules/m_opermotd.cpp +++ b/src/modules/m_opermotd.cpp @@ -45,7 +45,8 @@ class CommandOpermotd : public Command CommandOpermotd(Module* Creator) : Command(Creator,"OPERMOTD", 0, 1) { - flags_needed = 'o'; syntax = "[<servername>]"; + flags_needed = 'o'; + syntax = "[<servername>]"; } CmdResult Handle(User* user, const Params& parameters) CXX11_OVERRIDE diff --git a/src/modules/m_sajoin.cpp b/src/modules/m_sajoin.cpp index 559cdf6be..b329543e4 100644 --- a/src/modules/m_sajoin.cpp +++ b/src/modules/m_sajoin.cpp @@ -35,7 +35,8 @@ class CommandSajoin : public Command CommandSajoin(Module* Creator) : Command(Creator,"SAJOIN", 1) { allow_empty_last_param = false; - flags_needed = 'o'; syntax = "[<nick>] <channel>[,<channel>]+"; + flags_needed = 'o'; + syntax = "[<nick>] <channel>[,<channel>]+"; TRANSLATE2(TR_NICK, TR_TEXT); } diff --git a/src/modules/m_sakick.cpp b/src/modules/m_sakick.cpp index 5669a6370..4cc26fecc 100644 --- a/src/modules/m_sakick.cpp +++ b/src/modules/m_sakick.cpp @@ -31,7 +31,8 @@ class CommandSakick : public Command public: CommandSakick(Module* Creator) : Command(Creator,"SAKICK", 2, 3) { - flags_needed = 'o'; syntax = "<channel> <nick> [:<reason>]"; + flags_needed = 'o'; + syntax = "<channel> <nick> [:<reason>]"; TRANSLATE3(TR_TEXT, TR_NICK, TR_TEXT); } diff --git a/src/modules/m_samode.cpp b/src/modules/m_samode.cpp index de7b4fd22..be14022a1 100644 --- a/src/modules/m_samode.cpp +++ b/src/modules/m_samode.cpp @@ -37,7 +37,8 @@ class CommandSamode : public Command CommandSamode(Module* Creator) : Command(Creator,"SAMODE", 2) { allow_empty_last_param = false; - flags_needed = 'o'; syntax = "<target> (+|-)<modes> [<mode-parameters>]"; + flags_needed = 'o'; + syntax = "<target> (+|-)<modes> [<mode-parameters>]"; active = false; } diff --git a/src/modules/m_sanick.cpp b/src/modules/m_sanick.cpp index 8689778a2..6f760cf0b 100644 --- a/src/modules/m_sanick.cpp +++ b/src/modules/m_sanick.cpp @@ -33,7 +33,8 @@ class CommandSanick : public Command CommandSanick(Module* Creator) : Command(Creator,"SANICK", 2) { allow_empty_last_param = false; - flags_needed = 'o'; syntax = "<nick> <newnick>"; + flags_needed = 'o'; + syntax = "<nick> <newnick>"; TRANSLATE2(TR_NICK, TR_TEXT); } diff --git a/src/modules/m_sapart.cpp b/src/modules/m_sapart.cpp index 1ffffaa15..7a922cfb9 100644 --- a/src/modules/m_sapart.cpp +++ b/src/modules/m_sapart.cpp @@ -32,7 +32,8 @@ class CommandSapart : public Command public: CommandSapart(Module* Creator) : Command(Creator,"SAPART", 2, 3) { - flags_needed = 'o'; syntax = "<nick> <channel>[,<channel>]+ [:<reason>]"; + flags_needed = 'o'; + syntax = "<nick> <channel>[,<channel>]+ [:<reason>]"; TRANSLATE3(TR_NICK, TR_TEXT, TR_TEXT); } diff --git a/src/modules/m_saquit.cpp b/src/modules/m_saquit.cpp index aad840b8e..d0743ec5d 100644 --- a/src/modules/m_saquit.cpp +++ b/src/modules/m_saquit.cpp @@ -34,7 +34,8 @@ class CommandSaquit : public Command public: CommandSaquit(Module* Creator) : Command(Creator, "SAQUIT", 2, 2) { - flags_needed = 'o'; syntax = "<nick> :<reason>"; + flags_needed = 'o'; + syntax = "<nick> :<reason>"; TRANSLATE2(TR_NICK, TR_TEXT); } diff --git a/src/modules/m_satopic.cpp b/src/modules/m_satopic.cpp index 25b343f5b..6e718df5e 100644 --- a/src/modules/m_satopic.cpp +++ b/src/modules/m_satopic.cpp @@ -33,7 +33,8 @@ class CommandSATopic : public Command public: CommandSATopic(Module* Creator) : Command(Creator,"SATOPIC", 2, 2) { - flags_needed = 'o'; syntax = "<channel> :<topic>"; + flags_needed = 'o'; + syntax = "<channel> :<topic>"; } CmdResult Handle(User* user, const Params& parameters) CXX11_OVERRIDE diff --git a/src/modules/m_sethost.cpp b/src/modules/m_sethost.cpp index 3e61ff3d2..2bacded6f 100644 --- a/src/modules/m_sethost.cpp +++ b/src/modules/m_sethost.cpp @@ -36,7 +36,8 @@ class CommandSethost : public Command : Command(Creator,"SETHOST", 1) { allow_empty_last_param = false; - flags_needed = 'o'; syntax = "<host>"; + flags_needed = 'o'; + syntax = "<host>"; } CmdResult Handle(User* user, const Params& parameters) CXX11_OVERRIDE diff --git a/src/modules/m_setident.cpp b/src/modules/m_setident.cpp index 85e148a85..079564b23 100644 --- a/src/modules/m_setident.cpp +++ b/src/modules/m_setident.cpp @@ -34,7 +34,8 @@ class CommandSetident : public Command CommandSetident(Module* Creator) : Command(Creator,"SETIDENT", 1) { allow_empty_last_param = false; - flags_needed = 'o'; syntax = "<ident>"; + flags_needed = 'o'; + syntax = "<ident>"; } CmdResult Handle(User* user, const Params& parameters) CXX11_OVERRIDE diff --git a/src/modules/m_setidle.cpp b/src/modules/m_setidle.cpp index f9d8b3319..531aaf875 100644 --- a/src/modules/m_setidle.cpp +++ b/src/modules/m_setidle.cpp @@ -41,7 +41,8 @@ class CommandSetidle : public SplitCommand public: CommandSetidle(Module* Creator) : SplitCommand(Creator,"SETIDLE", 1) { - flags_needed = 'o'; syntax = "<duration>"; + flags_needed = 'o'; + syntax = "<duration>"; } CmdResult HandleLocal(LocalUser* user, const Params& parameters) CXX11_OVERRIDE diff --git a/src/modules/m_swhois.cpp b/src/modules/m_swhois.cpp index 0d0f0d14e..091fbf937 100644 --- a/src/modules/m_swhois.cpp +++ b/src/modules/m_swhois.cpp @@ -44,7 +44,8 @@ class CommandSwhois : public Command , operblock("swhois_operblock", ExtensionItem::EXT_USER, Creator) , swhois("swhois", ExtensionItem::EXT_USER, Creator) { - flags_needed = 'o'; syntax = "<nick> :<swhois>"; + flags_needed = 'o'; + syntax = "<nick> :<swhois>"; TRANSLATE2(TR_NICK, TR_TEXT); } |