[Ante-cvs] SF.net SVN: ante: [477] trunk/ant
Brought to you by:
roguestar191
|
From: <rog...@us...> - 2007-01-24 06:59:51
|
Revision: 477
http://svn.sourceforge.net/ante/?rev=477&view=rev
Author: roguestar191
Date: 2007-01-23 22:59:52 -0800 (Tue, 23 Jan 2007)
Log Message:
-----------
bugfix
Modified Paths:
--------------
trunk/ant/cgiscript.cpp
trunk/ant/skills/commands/lwe.cpp
trunk/ant/skills/wizcommands/totalaccess.cpp
Modified: trunk/ant/cgiscript.cpp
===================================================================
--- trunk/ant/cgiscript.cpp 2007-01-24 06:57:13 UTC (rev 476)
+++ trunk/ant/cgiscript.cpp 2007-01-24 06:59:52 UTC (rev 477)
@@ -1901,7 +1901,7 @@
std::string loaderhelper::give(std::vector<std::string>&stuff, void*caller) {
if(stuff.size() <= 3) return "Not enough arguments";
- object *c = findByNameNearCaller(c, stuff[1], true); // can select any player connected to give from (for immortal item control, so they can take cheated items off players) or items in the room with the caller
+ object *c = findByNameNearCaller(caller, stuff[1], true); // can select any player connected to give from (for immortal item control, so they can take cheated items off players) or items in the room with the caller
object *t = findByNameNearCaller(c, stuff[2]);// can select only players and items in the room with the caller, including the caller
bool inventory = true;
std::string itemname = stuff[3];
Modified: trunk/ant/skills/commands/lwe.cpp
===================================================================
--- trunk/ant/skills/commands/lwe.cpp 2007-01-24 06:57:13 UTC (rev 476)
+++ trunk/ant/skills/commands/lwe.cpp 2007-01-24 06:59:52 UTC (rev 477)
@@ -100,9 +100,10 @@
std::string buildPlayerString(std::vector<std::string> &pvec, bool who = false) {
std::string output;
std::vector<std::string>::iterator iter = pvec.begin(), end = pvec.end();
- for(;iter!=end;iter++) {
+ while(iter!=end) {
output += (*(iter));
- if(!who)output += " here. ";
+ if(!who) iter++,output += " here. ";
+ else if((iter++)!=end)output += "<BR>";
}
return output;
}
Modified: trunk/ant/skills/wizcommands/totalaccess.cpp
===================================================================
--- trunk/ant/skills/wizcommands/totalaccess.cpp 2007-01-24 06:57:13 UTC (rev 476)
+++ trunk/ant/skills/wizcommands/totalaccess.cpp 2007-01-24 06:59:52 UTC (rev 477)
@@ -62,6 +62,7 @@
std::string username = readStdin(g_fs, currequest, true);
std::string output = "%";
output += argc; output += "\n";
+ std::cout << "Wizard input: " << output << std::endl;
g_fs->Stdout2(output, currequest);
std::cerr << output << "\n";
// If there is no response it won't hang for long..
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|