]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/coremods/core_channel/core_channel.cpp
Add OnUserPreQuit event to allow modules to change quit messages (#1629).
[user/henk/code/inspircd.git] / src / coremods / core_channel / core_channel.cpp
index b3319cba1a4060fb7a706e1cf4b248ba1afeccd1..e95736ccc5d154447241d95dc8f31bceac4b9ea2 100644 (file)
@@ -244,7 +244,7 @@ class CoreModChannel : public Module, public CheckExemption::EventListener
                        if (!MOD_RESULT.check(InspIRCd::TimingSafeCompare(ckey, keygiven)))
                        {
                                // If no key provided, or key is not the right one, and can't bypass +k (not invited or option not enabled)
-                               user->WriteNumeric(ERR_BADCHANNELKEY, chan->name, "Cannot join channel (Incorrect channel key)");
+                               user->WriteNumeric(ERR_BADCHANNELKEY, chan->name, "Cannot join channel (incorrect channel key)");
                                return MOD_RES_DENY;
                        }
                }
@@ -256,7 +256,7 @@ class CoreModChannel : public Module, public CheckExemption::EventListener
                        FIRST_MOD_RESULT(OnCheckInvite, MOD_RESULT, (user, chan));
                        if (MOD_RESULT != MOD_RES_ALLOW)
                        {
-                               user->WriteNumeric(ERR_INVITEONLYCHAN, chan->name, "Cannot join channel (Invite only)");
+                               user->WriteNumeric(ERR_INVITEONLYCHAN, chan->name, "Cannot join channel (invite only)");
                                return MOD_RES_DENY;
                        }
                }
@@ -268,7 +268,7 @@ class CoreModChannel : public Module, public CheckExemption::EventListener
                        FIRST_MOD_RESULT(OnCheckLimit, MOD_RESULT, (user, chan));
                        if (!MOD_RESULT.check(chan->GetUserCounter() < static_cast<size_t>(limitmode.ext.get(chan))))
                        {
-                               user->WriteNumeric(ERR_CHANNELISFULL, chan->name, "Cannot join channel (Channel is full)");
+                               user->WriteNumeric(ERR_CHANNELISFULL, chan->name, "Cannot join channel (channel is full)");
                                return MOD_RES_DENY;
                        }
                }