]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Merge pull request #1351 from SaberUK/master+webirc
authorPeter Powell <petpow@saberuk.com>
Sat, 5 Aug 2017 17:33:04 +0000 (18:33 +0100)
committerGitHub <noreply@github.com>
Sat, 5 Aug 2017 17:33:04 +0000 (18:33 +0100)
Allow filtering WebIRC connections into a connect class by gateway.

1  2 
src/modules/m_cgiirc.cpp

index 5eba5ce354367e01c95430fbc13e707737c27ee5,251773643d4de23ff65ea9b490a9fb19d88aba9c..3fd9bf2500b4efa4f3781497c9f02f50a500f99e
@@@ -73,13 -74,13 +74,14 @@@ class CommandWebirc : public Comman
  
        CGIHostlist Hosts;
        CommandWebirc(Module* Creator)
-               : Command(Creator, "WEBIRC", 4),
-                 realhost("cgiirc_realhost", ExtensionItem::EXT_USER, Creator)
-                 , realip("cgiirc_realip", ExtensionItem::EXT_USER, Creator)
+               : Command(Creator, "WEBIRC", 4)
+               , gateway("cgiirc_gateway", ExtensionItem::EXT_USER, Creator)
+               , realhost("cgiirc_realhost", ExtensionItem::EXT_USER, Creator)
+               , realip("cgiirc_realip", ExtensionItem::EXT_USER, Creator)
                {
 +                      allow_empty_last_param = false;
                        works_before_reg = true;
-                       this->syntax = "password client hostname ip";
+                       this->syntax = "password gateway hostname ip";
                }
                CmdResult Handle(const std::vector<std::string> &parameters, User *user)
                {