Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-10-15 20:33:15 +0000
committerStijn Buys <ingar@osirion.org>2008-10-15 20:33:15 +0000
commit1e0df536c2fae85c317ce9c3cc17603d5f98c911 (patch)
tree3ab262d51451cda3e926e9581b294f08d39031d9 /src/core/gameserver.cc
parent97fca172fd51270cebd5b722f861a6c753bd4d2a (diff)
moved client console into a Widget
Diffstat (limited to 'src/core/gameserver.cc')
-rw-r--r--src/core/gameserver.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/core/gameserver.cc b/src/core/gameserver.cc
index 46c3624..e42d1b2 100644
--- a/src/core/gameserver.cc
+++ b/src/core/gameserver.cc
@@ -484,7 +484,6 @@ void GameServer::exec(Player *player, std::string const & cmdline)
Func *function = Func::find(command);
if (function ) {
-
std::string args;
if (cmdline.size() > command.size() +1 )
args.assign(cmdline.substr(command.size()+1));
@@ -499,9 +498,9 @@ void GameServer::exec(Player *player, std::string const & cmdline)
console()->set_rcon(true);
function->exec(args);
- char line[MAXCMDSIZE];
- while(console()->buffer().getline(line, MAXCMDSIZE-1)) {
- send(player, std::string(line));
+ while(console()->rconbuf().size()) {
+ send(player, (*console()->rconbuf().begin()));
+ console()->rconbuf().pop_front();
}
// disable rcon buffering