disable old warning

This commit is contained in:
psyc://psyced.org/~lynX 2011-02-03 16:54:56 +01:00
parent 73b25d07af
commit fbbdf7c2e0
3 changed files with 10 additions and 8 deletions

View File

@ -458,8 +458,9 @@ varargs object summon_person(string nick, vamixed blueprint) {
} }
// look up interface.h for a macro doing the same job // look up interface.h for a macro doing the same job
// legal_url() is similar to this, too
#ifndef is_formal #ifndef is_formal
string is_formal(string nicki) { string is_formal(string nicki) { // formerly known as is_uniform()
// uniform does not check for objects, so you MUST do that // uniform does not check for objects, so you MUST do that
// yourself first. // yourself first.
//unless (stringp(nicki)) return 0; //unless (stringp(nicki)) return 0;

View File

@ -12,6 +12,7 @@
#include <net.h> #include <net.h>
#include <uniform.h> #include <uniform.h>
// is_formal is similar to this
string legal_url(string url, string scheme) { string legal_url(string url, string scheme) {
if (scheme &&! abbrev(scheme+":", url)) return 0; if (scheme &&! abbrev(scheme+":", url)) return 0;
if (index(url, '"') >= 0) return 0; if (index(url, '"') >= 0) return 0;

View File

@ -1917,13 +1917,13 @@ cmd(a, args, b, source, vars) {
return 1; return 1;
#endif #endif
#ifdef PLACE_FILTERS #ifdef PLACE_FILTERS
case "quiet": // case "quiet":
case "filter": // case "filter":
case "silent": // case "silent":
sendmsg(source, "_error_usage_quiet", // sendmsg(source, "_error_usage_quiet",
"The /quiet and /silent functions have been replaced by /silence.\n\ // "The /quiet and /silent functions have been replaced by /silence.\n\
See the manual for details."); //See the manual for details.");
return 1; // return 1;
case "silence": case "silence":
// thought about calling this /filter, but maybe we need that // thought about calling this /filter, but maybe we need that
// in the user as /filter <method> <flags> someday.. // in the user as /filter <method> <flags> someday..