diff options
author | Adam <Adam@anope.org> | 2012-01-10 17:58:56 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-01-10 17:58:56 -0500 |
commit | a52ed70ea034cbac9bf3effbff8cdd8208d57d43 (patch) | |
tree | a39e76f8a8065da2b0c0805933d1acbde8c278d8 | |
parent | 7c03e60299c98106cff3b02c06bd7c5b7b0830f3 (diff) |
Don't ever attempt to process CTCPs as regular messages
-rw-r--r-- | modules/commands/cs_tban.cpp | 6 | ||||
-rw-r--r-- | src/protocol.cpp | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/modules/commands/cs_tban.cpp b/modules/commands/cs_tban.cpp index 109371577..4f063c6e1 100644 --- a/modules/commands/cs_tban.cpp +++ b/modules/commands/cs_tban.cpp @@ -40,7 +40,7 @@ class CommandCSTBan : public Command public: CommandCSTBan(Module *creator) : Command(creator, "chanserv/tban", 3, 3) { - this->SetDesc(_("Bans the user for a given length of time in seconds")); + this->SetDesc(_("Bans the user for a given length of time")); this->SetSyntax(_("\037channel\037 \037nick\037 \037time\037")); } @@ -82,10 +82,10 @@ class CommandCSTBan : public Command { this->OnSyntaxError(source, ""); source.Reply(" "); - source.Reply(_("Bans the user for a given length of time in seconds.\n" + source.Reply(_("Bans the user for a given length of time.\n" " \n" "Bans the given user from a channel for a specified length of\n" - "time in seconds. If the ban is removed before by hand, it\n" + "time. If the ban is removed before by hand, it\n" "will NOT be replaced.")); return true; diff --git a/src/protocol.cpp b/src/protocol.cpp index 218478757..1bdebcc79 100644 --- a/src/protocol.cpp +++ b/src/protocol.cpp @@ -429,6 +429,7 @@ bool IRCdMessage::OnPrivmsg(const Anope::string &source, const std::vector<Anope Module *enc = ModuleManager::FindFirstOf(ENCRYPTION); ircdproto->SendCTCP(bi, u->nick, "VERSION Anope-%s %s :%s - (%s) -- %s", Anope::Version().c_str(), Config->ServerName.c_str(), ircd->name, enc ? enc->name.c_str() : "unknown", Anope::VersionBuildString().c_str()); } + return true; } bi->OnMessage(u, message); |