Advertisement
pcgod

Untitled

Jun 15th, 2011
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.72 KB | None | 0 0
  1. diff --git a/src/murmur/Messages.cpp b/src/murmur/Messages.cpp
  2. index db4c55e..189e8a0 100644
  3. --- a/src/murmur/Messages.cpp
  4. +++ b/src/murmur/Messages.cpp
  5. @@ -188,6 +188,14 @@ void Server::msgAuthenticate(ServerUser *uSource, MumbleProto::Authenticate &msg
  6.                 ok = false;
  7.         }
  8.  
  9. +#if 1
  10. +       if (uSource->uiVersion < 0x010201) {
  11. +               reason = QString::fromLatin1("An 1.2.1 or newer client is required to connect to this server");
  12. +               rtType = MumbleProto::Reject_RejectType_WrongVersion;
  13. +               ok = false;
  14. +       }
  15. +#endif
  16. +
  17.         if (! ok) {
  18.                 log(uSource, QString("Rejected connection: %1").arg(reason));
  19.                 MumbleProto::Reject mpr;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement