]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Improve X-line text consistency.
authorMatt Schatz <genius3000@g3k.solutions>
Tue, 8 Jan 2019 10:03:53 +0000 (03:03 -0700)
committerPeter Powell <petpow@saberuk.com>
Wed, 9 Jan 2019 10:07:09 +0000 (10:07 +0000)
- Change any "-Line", ":Line", or "*line" to "-line" throughout
the X-line code, comments, and documentation.
- Add periods to the end of some notices.
- Correct a typo in the Q-line code comments.
- Update the filter module documentation (shun addition).

Co-authored-by: Robby <robby@chatbelgie.be>
29 files changed:
docs/conf/filter.conf.example
docs/conf/helpop-full.conf.example
docs/conf/helpop.conf.example
docs/conf/inspircd.conf.example
docs/conf/modules.conf.example
include/bancache.h
include/configreader.h
include/inspircd.h
include/users.h
include/xline.h
src/coremods/core_xline/cmd_eline.cpp
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/coremods/core_xline/core_xline.cpp
src/coremods/core_xline/core_xline.h
src/modules/m_cban.cpp
src/modules/m_clearchan.cpp
src/modules/m_connectban.cpp
src/modules/m_dnsbl.cpp
src/modules/m_filter.cpp
src/modules/m_rline.cpp
src/modules/m_shun.cpp
src/modules/m_spanningtree/treesocket.h
src/modules/m_svshold.cpp
src/snomasks.cpp
src/usermanager.cpp
src/xline.cpp

index 26c68d2c30cb450f58e881b4f37d8ef52438abe4..29e1f530c5e382c0641cdc80616f15d5f910df65 100644 (file)
@@ -6,7 +6,7 @@
 #               reason="reason for filtering"
 #               action="action to take"
 #               flags="filter flags"
-#               duration="optional length of gline">
+#               duration="optional duration of the G-line, Z-line or shun">
 #
 # Valid actions for 'action' are:
 #
 # kill          This disconnects the user, with the 'reason' parameter as
 #               the kill reason.
 #
-# gline         G-LINE the user for 'duration' length of time. Durations may
+# gline         G-line the user for 'duration' length of time. Durations may
 #               be specified using the notation 1y2d3h4m6s in a similar way to
-#               other glines, omitting the duration or setting it to 0 makes
-#               any glines set by this filter be permanent.
+#               other G-lines, omitting the duration or setting it to 0 makes
+#               any G-lines set by this filter be permanent.
 #
-# zline         Z-LINE the user for 'duration' length of time. Durations may
+# zline         Z-line the user for 'duration' length of time. Durations may
 #               be specified using the notation 1y2d3h4m6s in a similar way to
-#               other zlines, omitting the duration or setting it to 0 makes
-#               any zlines set by this filter be permanent.
+#               other Z-lines, omitting the duration or setting it to 0 makes
+#               any Z-lines set by this filter be permanent.
+#
+# shun          Shun the user for 'duration' length of time. Durations may
+#               be specified using the notation 1y2d3h4m6s in a similar way to
+#               other X-lines, omitting the duration or setting it to 0 makes
+#               any shuns set by this filter be permanent.
+#               Requires the shun module to be loaded.
 #
 # You can add filters from IRC using the /FILTER command. If you do this, they
 # will be set globally to your entire network.
index 6834ca7c8dec2a5d922b1241aa6e1ee87cc649df..dec0e23d1125ca1aac745c071d045400d1d7c154 100644 (file)
@@ -475,8 +475,8 @@ numeric lists)">
 
 This command will add a filter when more than one parameter is given,
 for messages of the types specified by the flags, with the given
-filter definition, action, duration (when the action is 'gline' or 'shun'),
-and reason.
+filter definition, action, duration (when the action is 'gline',
+'zline' or 'shun'), and reason.
 
 The filter will take effect when a message of any type specified by
 the flags and matching the definition is sent to the server, and
@@ -492,8 +492,8 @@ Block   Blocks message and informs +s IRCops of the blocked message
         and all relevant info
 Silent  Blocks message, but does not notify IRCops
 Kill    Kills the user
-Gline   Glines the user for the specified duration
-Zline   Zlines the user for the specified duration
+Gline   G-lines the user for the specified duration
+Zline   Z-lines the user for the specified duration
 Shun    Shuns the user for the specified duration (requires the shun module)
 
 Valid FILTER Flags
@@ -513,8 +513,8 @@ The reason for the filter will be used as the reason for the action,
 unless the action is 'none', and is sent to the user when their text is
 blocked by 'block' and 'silent' actions.
 
-A gline duration may be specified in seconds, or in the format
-1y2w3d4h5m6s - meaning one year, two weeks, three days, 4 hours, 5
+A G-line, Z-line or shun duration may be specified in seconds, or in the
+format 1y2w3d4h5m6s - meaning one year, two weeks, three days, 4 hours, 5
 minutes and 6 seconds. All fields in this format are optional.
 
 When only one parameter is provided (the filter pattern) the provided
@@ -721,7 +721,7 @@ Unloads and reloads a module on all linked servers.">
 
 <helpop key="kline" value="/KLINE <user@host> [<duration> :<reason>]
 
-Sets or removes a k-line (local host based ban) on a host and ident mask.
+Sets or removes a K-line (local host based ban) on a host and ident mask.
 You must specify all three parameters to add a ban, and one parameter
 to remove a ban (just the user@host section).
 
@@ -731,7 +731,7 @@ The duration may be specified in seconds, or in the format
 
 <helpop key="zline" value="/ZLINE <ipmask> [<duration> :<reason>]
 
-Sets or removes a z-line (ip based ban) on an ip range mask.
+Sets or removes a Z-line (ip based ban) on an ip range mask.
 You must specify all three parameters to add a ban, and one parameter
 to remove a ban (just the ipmask).
 
@@ -741,7 +741,7 @@ The duration may be specified in seconds, or in the format
 
 <helpop key="qline" value="/QLINE <nickmask> [<duration> :<reason>]
 
-Sets or removes a q-line (nick based ban) on a nick mask.
+Sets or removes a Q-line (nick based ban) on a nick mask.
 You must specify all three parameters to add a ban, and one parameter
 to remove a ban (just the nickmask).
 
@@ -751,7 +751,7 @@ The duration may be specified in seconds, or in the format
 
 <helpop key="gline" value="/GLINE <user@host> [<duration> :<reason>]
 
-Sets or removes a g-line (host based ban) on host mask.
+Sets or removes a G-line (host based ban) on host mask.
 You must specify all three parameters to add a ban, and one
 parameter to remove a ban (just the user@host section).
 
@@ -761,7 +761,7 @@ The duration may be specified in seconds, or in the format
 
 <helpop key="eline" value="/ELINE <user@host> [<duration> :<reason>]
 
-Sets or removes a e-line (global ban exception) on host mask.
+Sets or removes a E-line (global ban exception) on host mask.
 You must specify at least 3 parameters to add an exception, and one
 parameter to remove an exception (just the user@host section).
 
@@ -770,9 +770,9 @@ The duration may be specified in seconds, or in the format
 5 minutes and 6 seconds. All fields in this format are optional.
 
 This command has a few important limitations. Bans on *@<ip> can only
-be negated by an eline on *@<ip>, bans on *@<host> can be negated by
-elines on *@<ip>, or *@<host>, and bans on <ident>@* or <ident>@<host>
-can be negated by any eline that matches.">
+be negated by an E-line on *@<ip>, bans on *@<host> can be negated by
+E-lines on *@<ip>, or *@<host>, and bans on <ident>@* or <ident>@<host>
+can be negated by any E-line that matches.">
 
 <helpop key="wallops" value="/WALLOPS <message>
 
@@ -780,9 +780,9 @@ Sends a message to all +w users.">
 
 <helpop key="rline" value="/RLINE <regex> [<duration> :<reason>]
 
-Sets or removes an r-line (regex line) on a n!u@h\srealname mask. You
-must specify all three parameters to add an rline, and one parameter
-to remove an rline (just the regex).
+Sets or removes an R-line (regex line) on a n!u@h\srealname mask. You
+must specify all three parameters to add an R-line, and one parameter
+to remove an R-line (just the regex).
 
 The duration may be specified in seconds, or in the format
 1y2w3d4h5m6s - meaning one year, two weeks, three days, 4 hours,
@@ -794,11 +794,11 @@ Closes all unregistered connections to the local server.">
 
 <helpop key="clearchan" value="/CLEARCHAN <channel> [<KILL|KICK|G|Z>] [<reason>]
 
-Quits or kicks all non-opers from a channel, optionally G/Z-Lines them.
+Quits or kicks all non-opers from a channel, optionally G/Z-lines them.
 Useful for quickly nuking bot channels.
 
 The default method, KILL, simply disconnects the victims from the server,
-while methods G and Z also add G/Z-Lines for all the targets.
+while methods G and Z also add G/Z-lines for all the targets.
 
 When used, the victims won't see each other getting kicked or quitting.">
 
@@ -1070,8 +1070,8 @@ Note that all /STATS use is broadcast to online IRC operators.">
  R      Allows receipt of remote oper commands (requires the operlog module).
  t      Allows receipt of attempts to use /STATS (local and remote).
  v      Allows receipt of oper-override notices (requires the override module).
- x      Allows receipt of local Xline notices (g/Z/q/k/e/R/shuns).
- X      Allows receipt of remote Xline notices (g/Z/q/k/e/R/shuns).">
+ x      Allows receipt of local X-line notices (G/Z/Q/K/E/R/SHUN/CBan).
+ X      Allows receipt of remote X-line notices (G/Z/Q/K/E/R/SHUN/CBan).">
 
 ######################
 #      EXTBANS       #
index 5285a4b6ccaba87aee0571cb992080022b88d648..a4bfc751b49e7504c1a0d127fe11dc8076d882ba 100644 (file)
@@ -257,8 +257,8 @@ help channel if you have any questions.">
  R      Allows receipt of remote oper commands (requires the operlog module).
  t      Allows receipt of attempts to use /STATS (local and remote).
  v      Allows receipt of oper-override notices (requires the override module).
- x      Allows receipt of local Xline notices (g/Z/q/k/e/R/shuns).
- X      Allows receipt of remote Xline notices (g/Z/q/k/e/R/shuns).">
+ x      Allows receipt of local X-line notices (G/Z/Q/K/E/R/SHUN/CBan).
+ X      Allows receipt of remote X-line notices (G/Z/Q/K/E/R/SHUN/CBan).">
 
 <helpop key="extbans" value="Extended Bans
 ----------
index 952b981f3bd7a698ad9eaa85dbefbdd327183b6a..f65f6f5dea3803f3d55cd3f4a5f4870982940c33 100644 (file)
           # when a remote whois (/WHOIS <nick> <nick>) is used.
           #hideserver="*.example.com"
 
-          # hidebans: If this value is set to yes, when a user is banned ([gkz]lined)
+          # hidebans: If this value is set to yes, when a user is banned ([KGZ]-lined)
           # only opers will see the ban message when the user is removed
           # from the server.
           hidebans="no"
 <badhost host="root@*" reason="Don't IRC as root!">
 <badhost host="*@198.51.100.0/24" reason="This subnet is bad.">
 
-# exception: Hosts that are exempt from [kgz]lines.
+# exception: Hosts that are exempt from [KGZ]-lines.
 <exception
            # host: ident@hostname to exempt.
            # Wildcards and CIDR (if you specify an IP) can be used.
 
 #-#-#-#-#-#-#-#-#-#-#- INSANE BAN OPTIONS  -#-#-#-#-#-#-#-#-#-#-#-#-#-#
 #                                                                     #
-# This optional tag allows you to specify how wide a gline, eline,    #
-# kline, zline or qline can be before it is forbidden from being      #
-# set. By setting hostmasks="yes", you can allow all G, K, E lines,   #
+# This optional tag allows you to specify how wide a G-line, E-line,  #
+# K-line, Z-line or Q-line can be before it is forbidden from being   #
+# set. By setting hostmasks="yes", you can allow all G-, K-, E-lines, #
 # no matter how many users the ban would cover. This is not           #
-# recommended! By setting ipmasks="yes", you can allow all Z lines,   #
+# recommended! By setting ipmasks="yes", you can allow all Z-lines,   #
 # no matter how many users these cover too. Needless to say we        #
 # don't recommend you do this, or, set nickmasks="yes", which will    #
-# allow any qline.                                                    #
+# allow any Q-line.                                                   #
 #                                                                     #
 
 <insane
index 3b7d30e8f85667e57d48ffdc861a475b7989cddd..8c9831d2572d8e211b7505ce2d76ea3999273280 100644 (file)
 #<module name="classban">
 
 #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
-# Clear chan module: Allows opers to masskick, masskill or mass-G/ZLine
-# all users on a channel using /CLEARCHAN.
+# Clear chan module: Allows opers to masskick, masskill or
+# mass G/Z-line all users on a channel using /CLEARCHAN.
 #<module name="clearchan">
 
 #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
 
 #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
 # Connectban: Provides IP connection throttling. Any IP range that
-# connects too many times (configurable) in an hour is Z-Lined for a
+# connects too many times (configurable) in an hour is Z-lined for a
 # (configurable) duration, and their count resets to 0.
 #<module name="connectban">
 #
 
 #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
 # Regular expression provider for glob or wildcard (?/*) matching.
-# You must have at least 1 provider loaded to use the filter or rline
+# You must have at least 1 provider loaded to use the filter or R-line
 # modules. This module has no additional requirements, as it uses the
 # matching already present in InspIRCd core.
 #<module name="regex_glob">
 # Regular expression provider for PCRE (Perl-Compatible Regular
 # Expressions). You need libpcre installed to compile and load this
 # module. You must have at least 1 provider loaded to use the filter or
-# rline modules.
+# R-line modules.
 #<module name="regex_pcre">
 
 #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
 # Regular expression provider for POSIX regular expressions.
 # You shouldn't need any additional libraries on a POSIX-compatible
 # system (i.e.: any Linux, BSD, but not Windows). You must have at
-# least 1 provider loaded to use filter or rline.
+# least 1 provider loaded to use the filter or R-line modules.
 # On POSIX-compliant systems, regex syntax can be found by using the
 # command: 'man 7 regex'.
 #<module name="regex_posix">
 #<module name="restrictmsg">
 
 #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
-# R-Line module: Ban users through regular expression patterns.
+# R-line module: Ban users through regular expression patterns.
 #<module name="rline">
 #
 #-#-#-#-#-#-#-#-#-#-#-#- RLINE CONFIGURATION -#-#-#-#-#-#-#-#-#-#-#-#-#
 # useful under some situations, but *can* also use CPU with more users
 # on a server) then set 'matchonnickchange' to yes.
 # Also, this is where you set what Regular Expression engine is to be
-# used. If you ever change it while running, all of your R-Lines will
-# be wiped. This is the regex engine used by all R-Lines set, and
+# used. If you ever change it while running, all of your R-lines will
+# be wiped. This is the regex engine used by all R-lines set, and
 # regex_<engine> must be loaded, or rline will be non-functional
 # until you load it or change the engine to one that is loaded.
 #
 #<rline matchonnickchange="yes" engine="pcre">
 #
-# Generally, you will NOT want to use 'glob' here, as this turns
-# rline into just another gline. The exceptions are that rline will
+# Generally, you will NOT want to use 'glob' here, as this turns an
+# R-line into just another G-line. The exceptions are that R-lines will
 # always use the full "nick!user@host realname" string, rather than only
 # user@host, but beware that only the ? and * wildcards are available,
 # and are the only way to specify where the space can occur if you do
 #<module name="starttls">
 
 #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
-# SVSHold module: Implements SVSHOLD. Like Q:Lines, but can only be   #
+# SVSHold module: Implements SVSHOLD. Like Q-lines, but can only be   #
 # added/removed by Services.                                          #
 #<module name="svshold">
 # SVSHOLD does not generate server notices by default, you can turn
 # <wsorigin allow="https://*.example.com/">
 
 #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
-# XLine database: Stores all *Lines (G/Z/K/R/any added by other modules)
+# XLine database: Stores all *-lines (G/Z/K/R/any added by other modules)
 # in a file which is re-loaded on restart. This is useful
 # for two reasons: it keeps bans so users may not evade them, and on
 # bigger networks, server connections will take less time as there will
index 6e19e1ebe753d4afb0a3e309bb20e323782edfb7..e0c84ab5487ba0c69621df3b2802f2706a0ee768 100644 (file)
@@ -62,7 +62,7 @@ class CoreExport BanCacheManager
         * @param ip The IP the item is for.
         * @param type The type of ban cache item. std::string. .empty() means it's a negative match (user is allowed freely).
         * @param reason The reason for the ban. Left .empty() if it's a negative match.
-        * @param seconds Number of seconds before nuking the bancache entry, the default is a day. This might seem long, but entries will be removed as glines/etc expire.
+        * @param seconds Number of seconds before nuking the bancache entry, the default is a day. This might seem long, but entries will be removed as G-lines/etc expire.
         */
        BanCacheHit *AddHit(const std::string &ip, const std::string &type, const std::string &reason, time_t seconds = 0);
        BanCacheHit *GetHit(const std::string &ip);
index 4360b8661c7634d8de71ecc5373a71347ac2f1c9..fd9401c0fa9cf7a2b9810ebf13f972e5e7c0d6d2 100644 (file)
@@ -379,8 +379,8 @@ class CoreExport ServerConfig
        /** The number of seconds that the server clock can skip by before server operators are warned. */
        time_t TimeSkipWarn;
 
-       /** True if we're going to hide ban reasons for non-opers (e.g. G-Lines,
-        * K-Lines, Z-Lines)
+       /** True if we're going to hide ban reasons for non-opers (e.g. G-lines,
+        * K-lines, Z-lines)
         */
        bool HideBans;
 
index 8ca2314eb4082319d09b9640f070796581f8d5df..f5c7dbafba02ca2f31981aa9e40b4111a583b1bf 100644 (file)
@@ -284,7 +284,7 @@ class CoreExport InspIRCd
         */
        TimerManager Timers;
 
-       /** X-Line manager. Handles G/K/Q/E line setting, removal and matching
+       /** X-line manager. Handles G/K/Q/E-line setting, removal and matching
         */
        XLineManager* XLines;
 
index ef19adb5d858d059530f21f699d6daa2adb3a9bf..469c1712415ef7bdd40b267c3022d137f50e920b 100644 (file)
@@ -784,7 +784,7 @@ class CoreExport LocalUser : public User, public insp::intrusive_list_node<Local
         */
        unsigned int lastping:1;
 
-       /** This is true if the user matched an exception (E:Line). It is used to save time on ban checks.
+       /** This is true if the user matched an exception (E-line). It is used to save time on ban checks.
         */
        unsigned int exempt:1;
 
@@ -803,14 +803,14 @@ class CoreExport LocalUser : public User, public insp::intrusive_list_node<Local
 
        already_sent_t already_sent;
 
-       /** Check if the user matches a G or K line, and disconnect them if they do.
-        * @param doZline True if ZLines should be checked (if IP has changed since initial connect)
+       /** Check if the user matches a G- or K-line, and disconnect them if they do.
+        * @param doZline True if Z-lines should be checked (if IP has changed since initial connect)
         * Returns true if the user matched a ban, false else.
         */
        bool CheckLines(bool doZline = false);
 
        /** Use this method to fully connect a user.
-        * This will send the message of the day, check G/K/E lines, etc.
+        * This will send the message of the day, check G/K/E-lines, etc.
         */
        void FullConnect();
 
index 44f16cadfc15818d96cff5ff7c24836dd0f61461..dbb89277b95ab328926befe67780dfa15757f00b 100644 (file)
@@ -22,7 +22,7 @@
 
 #pragma once
 
-/** XLine is the base class for ban lines such as G lines and K lines.
+/** XLine is the base class for ban lines such as G-lines and K-lines.
  * Modules may derive from this, and their xlines will automatically be
  * handled as expected by any protocol modules (e.g. m_spanningtree will
  * propogate them using AddLine). The process of translating a type+pattern
@@ -67,7 +67,7 @@ class CoreExport XLine : public classbase
        }
 
        /** Change creation time of an xline. Updates expiry
-        * to be after the creation time
+        * to be after the creation time.
         */
        virtual void SetCreateTime(time_t created)
        {
@@ -102,7 +102,7 @@ class CoreExport XLine : public classbase
        virtual void Unset() { }
 
        /** Called when the expiry message is to be displayed for the
-        * line. Usually a line in the form 'expiring Xline blah, set by...'
+        * line. Usually a line in the form 'expiring X-line blah, set by...'
         * see the DisplayExpiry methods of GLine, ELine etc.
         */
        virtual void DisplayExpiry();
@@ -111,7 +111,7 @@ class CoreExport XLine : public classbase
         * e.g. '*\@foo' or '*baz*'. This must always return the full pattern
         * in a form which can be used to construct an entire derived xline,
         * even if it is stored differently internally (e.g. GLine stores the
-        * ident and host parts seperately but will still return ident\@host
+        * ident and host parts separately but will still return ident\@host
         * for its Displayable() method).
         */
        virtual const std::string& Displayable() = 0;
@@ -157,7 +157,7 @@ class CoreExport KLine : public XLine
 {
   public:
 
-       /** Create a K-Line.
+       /** Create a K-line.
         * @param s_time The set time
         * @param d The duration of the xline
         * @param src The sender of the xline
@@ -203,7 +203,7 @@ class CoreExport KLine : public XLine
 class CoreExport GLine : public XLine
 {
   public:
-       /** Create a G-Line.
+       /** Create a G-line.
         * @param s_time The set time
         * @param d The duration of the xline
         * @param src The sender of the xline
@@ -247,7 +247,7 @@ class CoreExport GLine : public XLine
 class CoreExport ELine : public XLine
 {
   public:
-       /** Create an E-Line.
+       /** Create an E-line.
         * @param s_time The set time
         * @param d The duration of the xline
         * @param src The sender of the xline
@@ -291,7 +291,7 @@ class CoreExport ELine : public XLine
 class CoreExport ZLine : public XLine
 {
   public:
-       /** Create a Z-Line.
+       /** Create a Z-line.
         * @param s_time The set time
         * @param d The duration of the xline
         * @param src The sender of the xline
@@ -327,7 +327,7 @@ class CoreExport ZLine : public XLine
 class CoreExport QLine : public XLine
 {
   public:
-       /** Create a G-Line.
+       /** Create a Q-line.
         * @param s_time The set time
         * @param d The duration of the xline
         * @param src The sender of the xline
@@ -399,7 +399,7 @@ class CoreExport XLineFactory
        virtual ~XLineFactory() { }
 };
 
-/** XLineManager is a class used to manage glines, klines, elines, zlines and qlines,
+/** XLineManager is a class used to manage G-lines, K-lines, E-lines, Z-lines and Q-lines,
  * or any other line created by a module. It also manages XLineFactory classes which
  * can generate a specialized XLine for use by another module.
  */
@@ -436,7 +436,7 @@ class CoreExport XLineManager
         */
        IdentHostPair IdentSplit(const std::string &ident_and_host);
 
-       /** Checks what users match e:lines and sets their ban exempt flag accordingly.
+       /** Checks what users match E-lines and sets their ban exempt flag accordingly.
         */
        void CheckELines();
 
@@ -476,7 +476,7 @@ class CoreExport XLineManager
        /** Registers an xline factory.
         * An xline factory is a class which when given a particular xline type,
         * will generate a new XLine specialized to that type. For example if you
-        * pass the XLineFactory that handles glines some data it will return a
+        * pass the XLineFactory that handles G-lines some data it will return a
         * pointer to a GLine, polymorphically represented as XLine. This is used where
         * you do not know the full details of the item you wish to create, e.g. in a
         * server protocol module like m_spanningtree, when you receive xlines from other
index a3a4d94667b88ab61a00d51586da2df9b80ceee8..3010e0f61eed7f85102fd99810848bda20fd0df3 100644 (file)
@@ -50,7 +50,7 @@ CmdResult CommandEline::Handle(User* user, const Params& parameters)
 
                if (ih.first.empty())
                {
-                       user->WriteNotice("*** Target not found");
+                       user->WriteNotice("*** Target not found.");
                        return CMD_FAILURE;
                }
 
@@ -61,7 +61,7 @@ CmdResult CommandEline::Handle(User* user, const Params& parameters)
                unsigned long duration;
                if (!InspIRCd::Duration(parameters[1], duration))
                {
-                       user->WriteNotice("*** Invalid duration for E-line");
+                       user->WriteNotice("*** Invalid duration for E-line.");
                        return CMD_FAILURE;
                }
                ELine* el = new ELine(ServerInstance->Time(), duration, user->nick.c_str(), parameters[2].c_str(), ih.first.c_str(), ih.second.c_str());
@@ -82,7 +82,7 @@ CmdResult CommandEline::Handle(User* user, const Params& parameters)
                else
                {
                        delete el;
-                       user->WriteNotice("*** E-Line for " + target + " already exists");
+                       user->WriteNotice("*** E-line for " + target + " already exists.");
                }
        }
        else
@@ -93,7 +93,7 @@ CmdResult CommandEline::Handle(User* user, const Params& parameters)
                }
                else
                {
-                       user->WriteNotice("*** E-Line " + target + " not found in list, try /stats e");
+                       user->WriteNotice("*** E-line " + target + " not found in list, try /stats e.");
                }
        }
 
index a9de707c434b63526bd1e8594f18703c7185153b..60dcd714aeff39f8c1524a7a9a6aed4220ce633e 100644 (file)
@@ -50,7 +50,7 @@ CmdResult CommandGline::Handle(User* user, const Params& parameters)
 
                if (ih.first.empty())
                {
-                       user->WriteNotice("*** Target not found");
+                       user->WriteNotice("*** Target not found.");
                        return CMD_FAILURE;
                }
 
@@ -60,14 +60,14 @@ CmdResult CommandGline::Handle(User* user, const Params& parameters)
 
                else if (target.find('!') != std::string::npos)
                {
-                       user->WriteNotice("*** G-Line cannot operate on nick!user@host masks");
+                       user->WriteNotice("*** G-line cannot operate on nick!user@host masks.");
                        return CMD_FAILURE;
                }
 
                unsigned long duration;
                if (!InspIRCd::Duration(parameters[1], duration))
                {
-                       user->WriteNotice("*** Invalid duration for G-line");
+                       user->WriteNotice("*** Invalid duration for G-line.");
                        return CMD_FAILURE;
                }
                GLine* gl = new GLine(ServerInstance->Time(), duration, user->nick.c_str(), parameters[2].c_str(), ih.first.c_str(), ih.second.c_str());
@@ -90,7 +90,7 @@ CmdResult CommandGline::Handle(User* user, const Params& parameters)
                else
                {
                        delete gl;
-                       user->WriteNotice("** G-Line for " + target + " already exists");
+                       user->WriteNotice("** G-line for " + target + " already exists.");
                }
 
        }
@@ -102,7 +102,7 @@ CmdResult CommandGline::Handle(User* user, const Params& parameters)
                }
                else
                {
-                       user->WriteNotice("*** G-Line " + target + " not found in list, try /stats g.");
+                       user->WriteNotice("*** G-line " + target + " not found in list, try /stats g.");
                }
        }
 
index 9b474d16cec977475cd096313f8438710e3907f0..813b9afa6ad4094927d806998c17d972a497afd4 100644 (file)
@@ -50,7 +50,7 @@ CmdResult CommandKline::Handle(User* user, const Params& parameters)
 
                if (ih.first.empty())
                {
-                       user->WriteNotice("*** Target not found");
+                       user->WriteNotice("*** Target not found.");
                        return CMD_FAILURE;
                }
 
@@ -60,14 +60,14 @@ CmdResult CommandKline::Handle(User* user, const Params& parameters)
 
                if (target.find('!') != std::string::npos)
                {
-                       user->WriteNotice("*** K-Line cannot operate on nick!user@host masks");
+                       user->WriteNotice("*** K-line cannot operate on nick!user@host masks.");
                        return CMD_FAILURE;
                }
 
                unsigned long duration;
                if (!InspIRCd::Duration(parameters[1], duration))
                {
-                       user->WriteNotice("*** Invalid duration for K-line");
+                       user->WriteNotice("*** Invalid duration for K-line.");
                        return CMD_FAILURE;
                }
                KLine* kl = new KLine(ServerInstance->Time(), duration, user->nick.c_str(), parameters[2].c_str(), ih.first.c_str(), ih.second.c_str());
@@ -90,7 +90,7 @@ CmdResult CommandKline::Handle(User* user, const Params& parameters)
                else
                {
                        delete kl;
-                       user->WriteNotice("*** K-Line for " + target + " already exists");
+                       user->WriteNotice("*** K-line for " + target + " already exists.");
                }
        }
        else
@@ -101,7 +101,7 @@ CmdResult CommandKline::Handle(User* user, const Params& parameters)
                }
                else
                {
-                       user->WriteNotice("*** K-Line " + target + " not found in list, try /stats k.");
+                       user->WriteNotice("*** K-line " + target + " not found in list, try /stats k.");
                }
        }
 
index 893c8d2139b8675c5af82313d0644452ae9b289c..086d860fc70a24a5b02acb963fcbef34ab15825f 100644 (file)
@@ -40,14 +40,14 @@ CmdResult CommandQline::Handle(User* user, const Params& parameters)
 
                if (parameters[0].find('@') != std::string::npos || parameters[0].find('!') != std::string::npos || parameters[0].find('.') != std::string::npos)
                {
-                       user->WriteNotice("*** A Q-Line only bans a nick pattern, not a nick!user@host pattern.");
+                       user->WriteNotice("*** A Q-line only bans a nick pattern, not a nick!user@host pattern.");
                        return CMD_FAILURE;
                }
 
                unsigned long duration;
                if (!InspIRCd::Duration(parameters[1], duration))
                {
-                       user->WriteNotice("*** Invalid duration for Q-line");
+                       user->WriteNotice("*** Invalid duration for Q-line.");
                        return CMD_FAILURE;
                }
                QLine* ql = new QLine(ServerInstance->Time(), duration, user->nick.c_str(), parameters[2].c_str(), parameters[0].c_str());
@@ -69,7 +69,7 @@ CmdResult CommandQline::Handle(User* user, const Params& parameters)
                else
                {
                        delete ql;
-                       user->WriteNotice("*** Q-Line for " + parameters[0] + " already exists");
+                       user->WriteNotice("*** Q-line for " + parameters[0] + " already exists.");
                }
        }
        else
@@ -80,7 +80,7 @@ CmdResult CommandQline::Handle(User* user, const Params& parameters)
                }
                else
                {
-                       user->WriteNotice("*** Q-Line " + parameters[0] + " not found in list, try /stats q.");
+                       user->WriteNotice("*** Q-line " + parameters[0] + " not found in list, try /stats q.");
                        return CMD_FAILURE;
                }
        }
index e81fc727f1c791b307edd708e983fd87b9536ea2..31030adce5ce715162e4dba3d9f53a8430b2b71a 100644 (file)
@@ -38,7 +38,7 @@ CmdResult CommandZline::Handle(User* user, const Params& parameters)
        {
                if (target.find('!') != std::string::npos)
                {
-                       user->WriteNotice("*** You cannot include a nickname in a zline, a zline must ban only an IP mask");
+                       user->WriteNotice("*** You cannot include a nickname in a Z-line, a Z-line must ban only an IP mask.");
                        return CMD_FAILURE;
                }
 
@@ -65,7 +65,7 @@ CmdResult CommandZline::Handle(User* user, const Params& parameters)
                unsigned long duration;
                if (!InspIRCd::Duration(parameters[1], duration))
                {
-                       user->WriteNotice("*** Invalid duration for Z-line");
+                       user->WriteNotice("*** Invalid duration for Z-line.");
                        return CMD_FAILURE;
                }
                ZLine* zl = new ZLine(ServerInstance->Time(), duration, user->nick.c_str(), parameters[2].c_str(), ipaddr);
@@ -87,7 +87,7 @@ CmdResult CommandZline::Handle(User* user, const Params& parameters)
                else
                {
                        delete zl;
-                       user->WriteNotice("*** Z-Line for " + std::string(ipaddr) + " already exists");
+                       user->WriteNotice("*** Z-line for " + std::string(ipaddr) + " already exists.");
                }
        }
        else
@@ -98,7 +98,7 @@ CmdResult CommandZline::Handle(User* user, const Params& parameters)
                }
                else
                {
-                       user->WriteNotice("*** Z-Line " + target + " not found in list, try /stats Z.");
+                       user->WriteNotice("*** Z-line " + target + " not found in list, try /stats Z.");
                        return CMD_FAILURE;
                }
        }
index ab80ab4ed50bfeba7d1b72dfdbeaafcad6718eb4..aa19bad34b9118feb21130383fed316f47b49d0b 100644 (file)
@@ -66,16 +66,16 @@ class CoreModXLine : public Module
 
        ModResult OnUserPreNick(LocalUser* user, const std::string& newnick) CXX11_OVERRIDE
        {
-               // Check Q-Lines (for local nick changes only, remote servers have our Q-Lines to enforce themselves)
+               // Check Q-lines (for local nick changes only, remote servers have our Q-lines to enforce themselves)
 
                XLine* xline = ServerInstance->XLines->MatchesLine("Q", newnick);
                if (!xline)
                        return MOD_RES_PASSTHRU; // No match
 
-               // A Q-Line matched the new nick, tell opers if the user is registered
+               // A Q-line matched the new nick, tell opers if the user is registered
                if (user->registered == REG_ALL)
                {
-                       ServerInstance->SNO->WriteGlobalSno('a', "Q-Lined nickname %s from %s: %s",
+                       ServerInstance->SNO->WriteGlobalSno('a', "Q-lined nickname %s from %s: %s",
                                newnick.c_str(), user->GetFullRealHost().c_str(), xline->reason.c_str());
                }
 
index 1e0bc74cceaec62ddcadb18b8676de5e2caf0c78..c607797f18f3e74b0d27250cf7506677445e00b1 100644 (file)
@@ -70,7 +70,7 @@ class InsaneBan
 class CommandEline : public Command
 {
  public:
-       /** Constructor for eline.
+       /** Constructor for E-line.
         */
        CommandEline(Module* parent);
 
@@ -87,7 +87,7 @@ class CommandEline : public Command
 class CommandGline : public Command
 {
  public:
-       /** Constructor for gline.
+       /** Constructor for G-line.
         */
        CommandGline(Module* parent);
 
@@ -104,7 +104,7 @@ class CommandGline : public Command
 class CommandKline : public Command
 {
  public:
-       /** Constructor for kline.
+       /** Constructor for K-line.
         */
        CommandKline(Module* parent);
 
@@ -127,7 +127,7 @@ class CommandQline : public Command
        };
 
  public:
-       /** Constructor for qline.
+       /** Constructor for Q-line.
         */
        CommandQline(Module* parent);
 
@@ -150,7 +150,7 @@ class CommandZline : public Command
        };
 
  public:
-       /** Constructor for zline.
+       /** Constructor for Z-line.
         */
        CommandZline(Module* parent);
 
index e0768aa88ec2a06c633daac6bc186f4da2bc4a65..3cdbbbdfb9c6468bbc3a85b0ed1ba7d05613dc1f 100644 (file)
@@ -114,7 +114,7 @@ class CommandCBan : public Command
                        unsigned long duration;
                        if (!InspIRCd::Duration(parameters[1], duration))
                        {
-                               user->WriteNotice("*** Invalid duration for CBan");
+                               user->WriteNotice("*** Invalid duration for CBan.");
                                return CMD_FAILURE;
                        }
                        const char *reason = (parameters.size() > 2) ? parameters[2].c_str() : "No reason supplied";
@@ -202,7 +202,7 @@ class ModuleCBan : public Module, public Stats::EventListener
 
        Version GetVersion() CXX11_OVERRIDE
        {
-               return Version("Gives /cban, aka C:lines. Think Q:lines, for channels.", VF_COMMON | VF_VENDOR);
+               return Version("Gives /cban, aka C-lines. Think Q-lines, for channels.", VF_COMMON | VF_VENDOR);
        }
 };
 
index 016d28737ff88fcb6e4ce2a35cfed6ebe4732bbd..dec49866c3b10c5fcff1734d38f0e8b83b9cda59 100644 (file)
@@ -211,7 +211,7 @@ class ModuleClearChan : public Module
 
        Version GetVersion() CXX11_OVERRIDE
        {
-               return Version("Adds /CLEARCHAN that allows opers to masskick, masskill or mass-G/ZLine users on a channel", VF_VENDOR|VF_OPTCOMMON);
+               return Version("Adds /CLEARCHAN that allows opers to masskick, masskill or mass G/Z-line users on a channel.", VF_VENDOR|VF_OPTCOMMON);
        }
 };
 
index d57ffca029dead81d2ff47383f6705d170546359..20121f5f9ac66ee68c5ba9e1ca9ad2fadbfb3aba 100644 (file)
@@ -73,7 +73,7 @@ class ModuleConnectBan : public Module
 
                        if (i->second >= threshold)
                        {
-                               // Create zline for set duration.
+                               // Create Z-line for set duration.
                                ZLine* zl = new ZLine(ServerInstance->Time(), banduration, ServerInstance->Config->ServerName, banmessage, mask.str());
                                if (!ServerInstance->XLines->AddLine(zl, NULL))
                                {
@@ -83,7 +83,7 @@ class ModuleConnectBan : public Module
                                ServerInstance->XLines->ApplyLines();
                                std::string maskstr = mask.str();
                                std::string timestr = InspIRCd::TimeString(zl->expiry);
-                               ServerInstance->SNO->WriteGlobalSno('x',"Module m_connectban added Z:line on *@%s to expire on %s: Connect flooding",
+                               ServerInstance->SNO->WriteGlobalSno('x',"Module m_connectban added Z-line on %s to expire on %s: Connect flooding",
                                        maskstr.c_str(), timestr.c_str());
                                ServerInstance->SNO->WriteGlobalSno('a', "Connect flooding from IP range %s (%d)", maskstr.c_str(), threshold);
                                connects.erase(i);
index d1ca800b36fcebfd34bddef7e631b0e67baa0a2c..a645e2cd16b47d91bb54460cb24db2dce2d2aa5a 100644 (file)
@@ -148,7 +148,7 @@ class DNSBLResolver : public DNS::Request
                                        if (ServerInstance->XLines->AddLine(kl,NULL))
                                        {
                                                std::string timestr = InspIRCd::TimeString(kl->expiry);
-                                               ServerInstance->SNO->WriteGlobalSno('x',"K:line added due to DNSBL match on *@%s to expire on %s: %s",
+                                               ServerInstance->SNO->WriteGlobalSno('x', "K-line added due to DNSBL match on *@%s to expire on %s: %s",
                                                        them->GetIPString().c_str(), timestr.c_str(), reason.c_str());
                                                ServerInstance->XLines->ApplyLines();
                                        }
@@ -166,7 +166,7 @@ class DNSBLResolver : public DNS::Request
                                        if (ServerInstance->XLines->AddLine(gl,NULL))
                                        {
                                                std::string timestr = InspIRCd::TimeString(gl->expiry);
-                                               ServerInstance->SNO->WriteGlobalSno('x',"G:line added due to DNSBL match on *@%s to expire on %s: %s",
+                                               ServerInstance->SNO->WriteGlobalSno('x', "G-line added due to DNSBL match on *@%s to expire on %s: %s",
                                                        them->GetIPString().c_str(), timestr.c_str(), reason.c_str());
                                                ServerInstance->XLines->ApplyLines();
                                        }
@@ -184,7 +184,7 @@ class DNSBLResolver : public DNS::Request
                                        if (ServerInstance->XLines->AddLine(zl,NULL))
                                        {
                                                std::string timestr = InspIRCd::TimeString(zl->expiry);
-                                               ServerInstance->SNO->WriteGlobalSno('x',"Z:line added due to DNSBL match on %s to expire on %s: %s",
+                                               ServerInstance->SNO->WriteGlobalSno('x', "Z-line added due to DNSBL match on %s to expire on %s: %s",
                                                        them->GetIPString().c_str(), timestr.c_str(), reason.c_str());
                                                ServerInstance->XLines->ApplyLines();
                                        }
index 0c8b81e4bdb77631a58c50c2af15555e92dfe58c..849f9908617404f978107e413811f423cf28d855 100644 (file)
@@ -421,7 +421,7 @@ ModResult ModuleFilter::OnUserPreMessage(User* user, const MessageTarget& msgtar
                else if (f->action == FA_GLINE)
                {
                        GLine* gl = new GLine(ServerInstance->Time(), f->duration, ServerInstance->Config->ServerName.c_str(), f->reason.c_str(), "*", user->GetIPString());
-                       ServerInstance->SNO->WriteGlobalSno('f', InspIRCd::Format("%s was glined because their message to %s matched %s (%s)",
+                       ServerInstance->SNO->WriteGlobalSno('f', InspIRCd::Format("%s was G-lined because their message to %s matched %s (%s)",
                                user->nick.c_str(), target.c_str(), f->freeform.c_str(), f->reason.c_str()));
                        if (ServerInstance->XLines->AddLine(gl,NULL))
                        {
@@ -433,7 +433,7 @@ ModResult ModuleFilter::OnUserPreMessage(User* user, const MessageTarget& msgtar
                else if (f->action == FA_ZLINE)
                {
                        ZLine* zl = new ZLine(ServerInstance->Time(), f->duration, ServerInstance->Config->ServerName.c_str(), f->reason.c_str(), user->GetIPString());
-                       ServerInstance->SNO->WriteGlobalSno('f', InspIRCd::Format("%s was zlined because their message to %s matched %s (%s)",
+                       ServerInstance->SNO->WriteGlobalSno('f', InspIRCd::Format("%s was Z-lined because their message to %s matched %s (%s)",
                                user->nick.c_str(), target.c_str(), f->freeform.c_str(), f->reason.c_str()));
                        if (ServerInstance->XLines->AddLine(zl,NULL))
                        {
@@ -506,9 +506,9 @@ ModResult ModuleFilter::OnPreCommand(std::string& command, CommandBase::Params&
                        }
                        if (f->action == FA_GLINE)
                        {
-                               /* Note: We gline *@IP so that if their host doesnt resolve the gline still applies. */
+                               /* Note: We G-line *@IP so that if their host doesn't resolve the G-line still applies. */
                                GLine* gl = new GLine(ServerInstance->Time(), f->duration, ServerInstance->Config->ServerName.c_str(), f->reason.c_str(), "*", user->GetIPString());
-                               ServerInstance->SNO->WriteGlobalSno('f', InspIRCd::Format("%s was glined because their %s message matched %s (%s)",
+                               ServerInstance->SNO->WriteGlobalSno('f', InspIRCd::Format("%s was G-lined because their %s message matched %s (%s)",
                                        user->nick.c_str(), command.c_str(), f->freeform.c_str(), f->reason.c_str()));
 
                                if (ServerInstance->XLines->AddLine(gl,NULL))
@@ -521,7 +521,7 @@ ModResult ModuleFilter::OnPreCommand(std::string& command, CommandBase::Params&
                        if (f->action == FA_ZLINE)
                        {
                                ZLine* zl = new ZLine(ServerInstance->Time(), f->duration, ServerInstance->Config->ServerName.c_str(), f->reason.c_str(), user->GetIPString());
-                               ServerInstance->SNO->WriteGlobalSno('f', InspIRCd::Format("%s was zlined because their %s message matched %s (%s)",
+                               ServerInstance->SNO->WriteGlobalSno('f', InspIRCd::Format("%s was Z-lined because their %s message matched %s (%s)",
                                        user->nick.c_str(), command.c_str(), f->freeform.c_str(), f->reason.c_str()));
 
                                if (ServerInstance->XLines->AddLine(zl,NULL))
index 77b3bc3aa66d98e5dcd42227ed83ba654abd8714..1247e81d3956a6469ad8c9973cef47396504bae5 100644 (file)
@@ -32,7 +32,7 @@ class RLine : public XLine
 {
  public:
 
-       /** Create a R-Line.
+       /** Create a R-line.
         * @param s_time The set time
         * @param d The duration of the xline
         * @param src The sender of the xline
@@ -81,7 +81,7 @@ class RLine : public XLine
                        if (ServerInstance->XLines->AddLine(zl, NULL))
                        {
                                std::string timestr = InspIRCd::TimeString(zl->expiry);
-                               ServerInstance->SNO->WriteToSnoMask('x', "Z-line added due to R-line match on *@%s%s%s: %s",
+                               ServerInstance->SNO->WriteToSnoMask('x', "Z-line added due to R-line match on %s%s%s: %s",
                                        zl->ipaddr.c_str(), zl->duration ? " to expire on " : "", zl->duration ? timestr.c_str() : "", zl->reason.c_str());
                                added_zline = true;
                        }
@@ -150,7 +150,7 @@ class CommandRLine : public Command
                        unsigned long duration;
                        if (!InspIRCd::Duration(parameters[1], duration))
                        {
-                               user->WriteNotice("*** Invalid duration for R-line");
+                               user->WriteNotice("*** Invalid duration for R-line.");
                                return CMD_FAILURE;
                        }
                        XLine *r = NULL;
@@ -184,7 +184,7 @@ class CommandRLine : public Command
                                else
                                {
                                        delete r;
-                                       user->WriteNotice("*** R-Line for " + parameters[0] + " already exists");
+                                       user->WriteNotice("*** R-line for " + parameters[0] + " already exists.");
                                }
                        }
                }
@@ -196,7 +196,7 @@ class CommandRLine : public Command
                        }
                        else
                        {
-                               user->WriteNotice("*** R-Line " + parameters[0] + " not found in list, try /stats R.");
+                               user->WriteNotice("*** R-line " + parameters[0] + " not found in list, try /stats R.");
                        }
                }
 
@@ -279,15 +279,15 @@ class ModuleRLine : public Module, public Stats::EventListener
                if (!rxfactory)
                {
                        if (newrxengine.empty())
-                               ServerInstance->SNO->WriteToSnoMask('a', "WARNING: No regex engine loaded - R-Line functionality disabled until this is corrected.");
+                               ServerInstance->SNO->WriteToSnoMask('a', "WARNING: No regex engine loaded - R-line functionality disabled until this is corrected.");
                        else
-                               ServerInstance->SNO->WriteToSnoMask('a', "WARNING: Regex engine '%s' is not loaded - R-Line functionality disabled until this is corrected.", newrxengine.c_str());
+                               ServerInstance->SNO->WriteToSnoMask('a', "WARNING: Regex engine '%s' is not loaded - R-line functionality disabled until this is corrected.", newrxengine.c_str());
 
                        ServerInstance->XLines->DelAll(f.GetType());
                }
                else if ((!initing) && (rxfactory.operator->() != factory))
                {
-                       ServerInstance->SNO->WriteToSnoMask('a', "Regex engine has changed, removing all R-Lines");
+                       ServerInstance->SNO->WriteToSnoMask('a', "Regex engine has changed, removing all R-lines.");
                        ServerInstance->XLines->DelAll(f.GetType());
                }
 
@@ -331,7 +331,7 @@ class ModuleRLine : public Module, public Stats::EventListener
 
        void OnUnloadModule(Module* mod) CXX11_OVERRIDE
        {
-               // If the regex engine became unavailable or has changed, remove all rlines
+               // If the regex engine became unavailable or has changed, remove all R-lines.
                if (!rxfactory)
                {
                        ServerInstance->XLines->DelAll(f.GetType());
index e4fb2c11d0fd71d4fb81d0e525331cfcc54364dc..6453ace81485958a0060e4c4d28adbc2d4a3202f 100644 (file)
@@ -92,7 +92,7 @@ class CommandShun : public Command
                        {
                                if (!InspIRCd::Duration(parameters[1], duration))
                                {
-                                       user->WriteNotice("*** Invalid duration for SHUN");
+                                       user->WriteNotice("*** Invalid duration for SHUN.");
                                        return CMD_FAILURE;
                                }
                                expr = parameters[2];
@@ -122,7 +122,7 @@ class CommandShun : public Command
                        else
                        {
                                delete r;
-                               user->WriteNotice("*** Shun for " + target + " already exists");
+                               user->WriteNotice("*** Shun for " + target + " already exists.");
                                return CMD_FAILURE;
                        }
                }
index 878b34ad7523496ff1185c1fb578108c7cde3756..6206448c159472014d20f920caedcacdcd288e33 100644 (file)
@@ -259,7 +259,7 @@ class TreeSocket : public BufferedSocket
         */
        void SendFJoins(Channel* c);
 
-       /** Send G, Q, Z and E lines */
+       /** Send G-, Q-, Z- and E-lines */
        void SendXLines();
 
        /** Send all known information about a channel */
index 52c250fef278fc35178ef6c4bb7917a845ff2967..0aaf113f0a21f58cbebe5f1e8a252099b3266d4e 100644 (file)
@@ -76,7 +76,7 @@ class SVSHoldFactory : public XLineFactory
  public:
        SVSHoldFactory() : XLineFactory("SVSHOLD") { }
 
-       /** Generate a shun
+       /** Generate an SVSHOLD
        */
        XLine* Generate(time_t set_time, unsigned long duration, const std::string& source, const std::string& reason, const std::string& xline_specific_mask) CXX11_OVERRIDE
        {
@@ -130,7 +130,7 @@ class CommandSvshold : public Command
                        unsigned long duration;
                        if (!InspIRCd::Duration(parameters[1], duration))
                        {
-                               user->WriteNotice("*** Invalid duration for SVSHOLD");
+                               user->WriteNotice("*** Invalid duration for SVSHOLD.");
                                return CMD_FAILURE;
                        }
                        SVSHold* r = new SVSHold(ServerInstance->Time(), duration, user->nick.c_str(), parameters[2].c_str(), parameters[0].c_str());
@@ -221,7 +221,7 @@ class ModuleSVSHold : public Module, public Stats::EventListener
 
        Version GetVersion() CXX11_OVERRIDE
        {
-               return Version("Implements SVSHOLD. Like Q:Lines, but can only be added/removed by Services.", VF_COMMON | VF_VENDOR);
+               return Version("Implements SVSHOLD. Like Q-lines, but can only be added/removed by Services.", VF_COMMON | VF_VENDOR);
        }
 };
 
index 0b266ff7e44c6420b9a437b047c4d58a9d94f939..e39fb84fb748f05a131ce75174280c24d86c04f4 100644 (file)
@@ -69,8 +69,8 @@ SnomaskManager::SnomaskManager()
        EnableSnomask('q',"QUIT");                      /* Local quit notices */
        EnableSnomask('k',"KILL");                      /* Kill notices */
        EnableSnomask('o',"OPER");                      /* Oper up/down notices */
-       EnableSnomask('a',"ANNOUNCEMENT");      /* formerly WriteOpers() - generic notices to all opers */
-       EnableSnomask('x',"XLINE");                     /* Xline notice (g/z/q/k/e) */
+       EnableSnomask('a',"ANNOUNCEMENT");              /* formerly WriteOpers() - generic notices to all opers */
+       EnableSnomask('x',"XLINE");                     /* X-line notices (G/Z/Q/K/E/R/SHUN/CBan) */
        EnableSnomask('t',"STATS");                     /* Local or remote stats request */
 }
 
index 6f9d15502d28d47be552e4d0d996a3f38a8ae8e4..a70a00085029bda15ef96e8850b6fe2025b1765b 100644 (file)
@@ -132,7 +132,7 @@ void UserManager::AddUser(int socket, ListenSocket* via, irc::sockets::sockaddrs
                                New->WriteNumeric(ERR_YOUREBANNEDCREEP, ServerInstance->Config->XLineMessage);
 
                        if (ServerInstance->Config->HideBans)
-                               this->QuitUser(New, b->Type + "-Lined", &b->Reason);
+                               this->QuitUser(New, b->Type + "-lined", &b->Reason);
                        else
                                this->QuitUser(New, b->Reason);
                        return;
index 9c84101e19c248dc258781297a836bf7d96096ad..55496b42405e73d373bb2ff160c672c5ba1394c7 100644 (file)
@@ -329,7 +329,7 @@ void ELine::Unset()
        ServerInstance->XLines->CheckELines();
 }
 
-// returns a pointer to the reason if a nickname matches a qline, NULL if it didnt match
+// returns a pointer to the reason if a nickname matches a Q-line, NULL if it didn't match
 
 XLine* XLineManager::MatchesLine(const std::string &type, User* user)
 {
@@ -523,13 +523,13 @@ bool XLine::IsBurstable()
 
 void XLine::DefaultApply(User* u, const std::string &line, bool bancache)
 {
-       const std::string banReason = line + "-Lined: " + reason;
+       const std::string banReason = line + "-lined: " + reason;
 
        if (!ServerInstance->Config->XLineMessage.empty())
                u->WriteNumeric(ERR_YOUREBANNEDCREEP, ServerInstance->Config->XLineMessage);
 
        if (ServerInstance->Config->HideBans)
-               ServerInstance->Users->QuitUser(u, line + "-Lined", &banReason);
+               ServerInstance->Users->QuitUser(u, line + "-lined", &banReason);
        else
                ServerInstance->Users->QuitUser(u, banReason);
 
@@ -629,7 +629,7 @@ bool QLine::Matches(User *u)
 
 void QLine::Apply(User* u)
 {
-       /* Force to uuid on apply of qline, no need to disconnect any more :) */
+       /* Force to uuid on apply of Q-line, no need to disconnect anymore :) */
        u->ChangeNick(u->uuid);
 }
 
@@ -667,7 +667,7 @@ bool GLine::Matches(const std::string &str)
 
 void ELine::OnAdd()
 {
-       /* When adding one eline, only check the one eline */
+       /* When adding one E-line, only check the one E-line */
        const UserManager::LocalList& list = ServerInstance->Users.GetLocalUsers();
        for (UserManager::LocalList::const_iterator u2 = list.begin(); u2 != list.end(); u2++)
        {
@@ -681,7 +681,7 @@ void XLine::DisplayExpiry()
 {
        bool onechar = (type.length() == 1);
        ServerInstance->SNO->WriteToSnoMask('x', "Removing expired %s%s %s (set by %s %ld seconds ago): %s",
-               type.c_str(), (onechar ? "-Line" : ""), Displayable().c_str(), source.c_str(), (long)(ServerInstance->Time() - set_time), reason.c_str());
+               type.c_str(), (onechar ? "-line" : ""), Displayable().c_str(), source.c_str(), (long)(ServerInstance->Time() - set_time), reason.c_str());
 }
 
 const std::string& ELine::Displayable()