Advertisement
Guest User

Untitled

a guest
Mar 28th, 2020
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. I propose this change:
  2.  
  3. diff --git a/src/modules/m_timedbans.cpp b/src/modules/m_timedbans.cpp
  4. index c4c1fffe4..8d3595846 100644
  5. --- a/src/modules/m_timedbans.cpp
  6. +++ b/src/modules/m_timedbans.cpp
  7. @@ -88,9 +88,10 @@ class CommandTban : public Command
  8. }
  9.  
  10. unsigned int cm = channel->GetPrefixValue(user);
  11. - if (cm < HALFOP_VALUE)
  12. + if (user->usertype == USERTYPE_SERVER || cm < HALFOP_VALUE)
  13. {
  14.  
  15. To be allowed to use it as a server protection like:
  16.  
  17. CommandBase::Params params;
  18. params.push_back(channel->name);
  19. params.push_back(time);
  20. params.push_back("*!*@"+user->GetDisplayedHost());
  21. ServerInstance->Parser.CallHandler("TBAN", params, ServerInstance->FakeClient);
  22.  
  23. 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