]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Penalize commands that had 0 penalty
authorAttila Molnar <attilamolnar@hush.com>
Fri, 30 Dec 2016 16:32:01 +0000 (17:32 +0100)
committerAttila Molnar <attilamolnar@hush.com>
Fri, 30 Dec 2016 16:32:01 +0000 (17:32 +0100)
12 files changed:
src/coremods/core_xline/cmd_gline.cpp
src/coremods/core_xline/cmd_kline.cpp
src/coremods/core_xline/cmd_qline.cpp
src/coremods/core_xline/cmd_zline.cpp
src/modules/m_ojoin.cpp
src/modules/m_sajoin.cpp
src/modules/m_sakick.cpp
src/modules/m_samode.cpp
src/modules/m_sanick.cpp
src/modules/m_sapart.cpp
src/modules/m_saquit.cpp
src/modules/m_satopic.cpp

index 3f042c3669de0d8292740a22709971c25d881580..49932ba9d473b1ec9342423f9926e659d4d104bd 100644 (file)
@@ -26,7 +26,6 @@ CommandGline::CommandGline(Module* parent)
        : Command(parent, "GLINE", 1, 3)
 {
        flags_needed = 'o';
-       Penalty = 0;
        syntax = "<ident@host> [<duration> :<reason>]";
 }
 
index ee85fdd1da71af99e9b9fdc9f02df73c60ead6a9..db8862d37474636213fd6d1b36a044437a861f8f 100644 (file)
@@ -26,7 +26,6 @@ CommandKline::CommandKline(Module* parent)
        : Command(parent, "KLINE", 1, 3)
 {
        flags_needed = 'o';
-       Penalty = 0;
        syntax = "<ident@host> [<duration> :<reason>]";
 }
 
index 955efeaf097f64b8f29099b89220ca70f31d45b9..6dc0da9bad7ec210e62fbe690a6bd39840ae9c9d 100644 (file)
@@ -27,7 +27,6 @@ CommandQline::CommandQline(Module* parent)
        : Command(parent, "QLINE", 1, 3)
 {
        flags_needed = 'o';
-       Penalty = 0;
        syntax = "<nick> [<duration> :<reason>]";
 }
 
index 859be1004857e905cb2b9ef14cb8510e9378df8c..1bc7e8afd7595e4810dc0bba667c8f53492f8ca2 100644 (file)
@@ -27,7 +27,6 @@ CommandZline::CommandZline(Module* parent)
        : Command(parent, "ZLINE", 1, 3)
 {
        flags_needed = 'o';
-       Penalty = 0;
        syntax = "<ipmask> [<duration> :<reason>]";
 }
 
index 2573e8b78e93636c53115ca06c43d2d76832fedf..9465a51e50aa41b5eb0a49b476f67471f9468e88 100644 (file)
@@ -34,7 +34,7 @@ class CommandOjoin : public SplitCommand
                : SplitCommand(parent, "OJOIN", 1)
                , npmh(&mode)
        {
-               flags_needed = 'o'; Penalty = 0; syntax = "<channel>";
+               flags_needed = 'o'; syntax = "<channel>";
                active = false;
        }
 
index 9d87360ece4f080f672c1210a072d1909c8f8cc7..8bf86531916a1e54f885a5ad315da506a49d67b7 100644 (file)
@@ -29,7 +29,7 @@ class CommandSajoin : public Command
        CommandSajoin(Module* Creator) : Command(Creator,"SAJOIN", 1)
        {
                allow_empty_last_param = false;
-               flags_needed = 'o'; Penalty = 0; syntax = "[<nick>] <channel>[,<channel>]";
+               flags_needed = 'o'; syntax = "[<nick>] <channel>[,<channel>]";
                TRANSLATE2(TR_NICK, TR_TEXT);
        }
 
index ab168ca680d1558a522a3c1821a98b2a17fd661e..81a74502bc2e7a5e2290ce4b8386a6c3b8d234c3 100644 (file)
@@ -27,7 +27,7 @@ class CommandSakick : public Command
  public:
        CommandSakick(Module* Creator) : Command(Creator,"SAKICK", 2, 3)
        {
-               flags_needed = 'o'; Penalty = 0; syntax = "<channel> <nick> [reason]";
+               flags_needed = 'o'; syntax = "<channel> <nick> [reason]";
                TRANSLATE3(TR_TEXT, TR_NICK, TR_TEXT);
        }
 
index bcb876d5b41906c5ca20383517b807852cd210a7..6288f5862650268713912a5dd6a4c55d6f7d7941 100644 (file)
@@ -31,7 +31,7 @@ class CommandSamode : public Command
        CommandSamode(Module* Creator) : Command(Creator,"SAMODE", 2)
        {
                allow_empty_last_param = false;
-               flags_needed = 'o'; Penalty = 0; syntax = "<target> <modes> {<mode-parameters>}";
+               flags_needed = 'o'; syntax = "<target> <modes> {<mode-parameters>}";
                active = false;
        }
 
index 3dc89b4f666efcb5d06edfc4a3138337670df46e..c9ceba78ee3d2fbf7058304ed508696c533840ce 100644 (file)
@@ -29,7 +29,7 @@ class CommandSanick : public Command
        CommandSanick(Module* Creator) : Command(Creator,"SANICK", 2)
        {
                allow_empty_last_param = false;
-               flags_needed = 'o'; Penalty = 0; syntax = "<nick> <new-nick>";
+               flags_needed = 'o'; syntax = "<nick> <new-nick>";
                TRANSLATE2(TR_NICK, TR_TEXT);
        }
 
index db1e6fdeea6304014e3bf91c7f8727e8fc7ccd20..b51316dc5ccf7a7156803630da8559585ddfaee3 100644 (file)
@@ -28,7 +28,7 @@ class CommandSapart : public Command
  public:
        CommandSapart(Module* Creator) : Command(Creator,"SAPART", 2, 3)
        {
-               flags_needed = 'o'; Penalty = 0; syntax = "<nick> <channel>[,<channel>] [reason]";
+               flags_needed = 'o'; syntax = "<nick> <channel>[,<channel>] [reason]";
                TRANSLATE3(TR_NICK, TR_TEXT, TR_TEXT);
        }
 
index c3895ec12f22384fbe28625f1d1ed02106e8a725..9f700ec5fdc14e8414de77cd25b6f9ff78900bdd 100644 (file)
@@ -28,7 +28,7 @@ class CommandSaquit : public Command
  public:
        CommandSaquit(Module* Creator) : Command(Creator, "SAQUIT", 2, 2)
        {
-               flags_needed = 'o'; Penalty = 0; syntax = "<nick> <reason>";
+               flags_needed = 'o'; syntax = "<nick> <reason>";
                TRANSLATE2(TR_NICK, TR_TEXT);
        }
 
index f966d6a5ad16bb8f69f8f8976a578e2829146559..f45d9c8cd4aa235b2bf80afb1091a7d7ca12c6c4 100644 (file)
@@ -26,7 +26,7 @@ class CommandSATopic : public Command
  public:
        CommandSATopic(Module* Creator) : Command(Creator,"SATOPIC", 2, 2)
        {
-               flags_needed = 'o'; Penalty = 0; syntax = "<target> <topic>";
+               flags_needed = 'o'; syntax = "<target> <topic>";
        }
 
        CmdResult Handle (const std::vector<std::string>& parameters, User *user)