mail[Wesnoth-commits] r33643 - /trunk/src/server/server.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by thomas . baumhauer on March 14, 2009 - 18:56:
Author: baufo
Date: Sat Mar 14 18:56:29 2009
New Revision: 33643

URL: http://svn.gna.org/viewcvs/wesnoth?rev=33643&view=rev
Log:
add query command to en/disallow login of unregistered users

Modified:
    trunk/src/server/server.cpp

Modified: trunk/src/server/server.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/server/server.cpp?rev=33643&r1=33642&r2=33643&view=diff
==============================================================================
--- trunk/src/server/server.cpp (original)
+++ trunk/src/server/server.cpp Sat Mar 14 18:56:29 2009
@@ -1587,6 +1587,13 @@
                        }
                }
                if (!found_something) out << "\nNo results found for '" << 
parameters << "'.";
+       } else if (command == "deny_unregistered_login" || command == "dul") {
+               if (parameters == "") {
+                       out << "Unregistered login is " << 
(deny_unregistered_login_ ? "disallowd" : "allowed") << ".";
+               } else {
+                       deny_unregistered_login_ = (parameters == "yes");
+                       out << "Unregistered login is now " << 
(deny_unregistered_login_ ? "disallowd" : "allowed") << ".";
+               }
        } else {
                out << "Command '" << command << "' is not recognized.\n" << 
help_msg;
        }




Related Messages


Powered by MHonArc, Updated Sat Mar 14 19:00:18 2009