[Ante-cvs] SF.net SVN: ante: [476] trunk/ant
Brought to you by:
roguestar191
|
From: <rog...@us...> - 2007-01-24 06:57:14
|
Revision: 476
http://svn.sourceforge.net/ante/?rev=476&view=rev
Author: roguestar191
Date: 2007-01-23 22:57:13 -0800 (Tue, 23 Jan 2007)
Log Message:
-----------
Small fix to setmodify, some commands have a very hard time with multiple word item names (like grant) so setmodify them, change their name, work on them, change it back... for now.. grant probobly works just needs quote processing in the totalaccess module
Modified Paths:
--------------
trunk/ant/cgiscript.cpp
trunk/ant/todo
Modified: trunk/ant/cgiscript.cpp
===================================================================
--- trunk/ant/cgiscript.cpp 2007-01-24 06:10:52 UTC (rev 475)
+++ trunk/ant/cgiscript.cpp 2007-01-24 06:57:13 UTC (rev 476)
@@ -1361,8 +1361,10 @@
object *obj = static_cast<object*>(caller);
// if(obj->myTypes().compare("MOB") != 0) return "Only mobs can call setmodify!";
object *m = static_cast<object*>(obj);
- if(stuff.size() == 2) {
- std::string word = stuff[1];
+ if(stuff.size() >= 2) {
+ size_t rxv = 1;
+ std::string word = stuff[rxv]; rxv++;
+ while(rxv != stuff.size()) word+=" ",word+=stuff[rxv], rxv++;
if(word.compare("races") == 0) { // {{{
std::string ret;
std::vector<object *>::iterator iter = mudg->Races.begin(), end = mudg->Races.end();
Modified: trunk/ant/todo
===================================================================
--- trunk/ant/todo 2007-01-24 06:10:52 UTC (rev 475)
+++ trunk/ant/todo 2007-01-24 06:57:13 UTC (rev 476)
@@ -5,10 +5,10 @@
Add basic give module to exploit give callback - put in skills/commands/invcontrol.cpp
-Add snoop ability and callback to enable/disable
+Add snoop ability and callback to enable/disable (1st priority)
-Add username/IP-(un)ban script callback (Module not needed, those who should have access to this should have access to totalaccess script)
- On username ban it grabs the last ip of the user, and bans it, and bans any ip that tries to log into that username(successfully) until the username is unbanned.
+Add username/IP-(un)ban script callback (2nd priority)(Module not needed, those who should have access to this should have access to totalaccess script)
+ On username ban it grabs the last ip of the user, and bans it, and bans any ip that tries to log into that username(successfully) until the username is unbanned. all banned ip's related to the username should be unbanned.
Step 2
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|