From 5784c14ab798847248e4682ef28434767a549fc6 Mon Sep 17 00:00:00 2001 From: Constantin Wenger Date: Fri, 12 Aug 2011 01:13:42 +0200 Subject: added ipban support commands: /#ipban /#ipunban --- src/auth.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/auth.cpp') diff --git a/src/auth.cpp b/src/auth.cpp index 5d61243c6..dc740411b 100644 --- a/src/auth.cpp +++ b/src/auth.cpp @@ -40,6 +40,8 @@ std::string privsToString(u64 privs) os<<"privs,"; if(privs & PRIV_SHOUT) os<<"shout,"; + if(privs & PRIV_BAN) + os<<"ban,"; if(os.tellp()) { // Drop the trailing comma. (Why on earth can't @@ -70,6 +72,8 @@ u64 stringToPrivs(std::string str) privs |= PRIV_PRIVS; else if(s == "shout") privs |= PRIV_SHOUT; + else if(s == "ban") + privs |= PRIV_BAN; else return PRIV_INVALID; } -- cgit v1.2.3