Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I propose this change:
- diff --git a/src/modules/m_timedbans.cpp b/src/modules/m_timedbans.cpp
- index c4c1fffe4..8d3595846 100644
- --- a/src/modules/m_timedbans.cpp
- +++ b/src/modules/m_timedbans.cpp
- @@ -88,9 +88,10 @@ class CommandTban : public Command
- }
- unsigned int cm = channel->GetPrefixValue(user);
- - if (cm < HALFOP_VALUE)
- + if (user->usertype == USERTYPE_SERVER || cm < HALFOP_VALUE)
- {
- To be allowed to use it as a server protection like:
- CommandBase::Params params;
- params.push_back(channel->name);
- params.push_back(time);
- params.push_back("*!*@"+user->GetDisplayedHost());
- ServerInstance->Parser.CallHandler("TBAN", params, ServerInstance->FakeClient);
- As a server protection, instead of putting a timeless ban (useless theese times with this "so easy to get a new IP").
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement