--- deliantra/server/include/shstr.h 2010/03/26 01:04:44 1.38 +++ deliantra/server/include/shstr.h 2011/04/23 04:56:50 1.40 @@ -1,7 +1,7 @@ /* * This file is part of Deliantra, the Roguelike Realtime MMORPG. * - * Copyright (©) 2005,2006,2007,2008,2009,2010 Marc Alexander Lehmann / Robin Redeker / the Deliantra team + * Copyright (©) 2005,2006,2007,2008,2009,2010,2011 Marc Alexander Lehmann / Robin Redeker / the Deliantra team * * Deliantra is free software: you can redistribute it and/or modify it under * the terms of the Affero GNU General Public License as published by the @@ -86,10 +86,7 @@ // returns true if the substring is contained in the shstr // if the shstr is 0, then this always returns false. // the shstr is (theoretically) treated as a comma/colon/space etc. separated list. - bool contains (const char *substring) const - { - return s != null () && strstr (s, substring); - } + bool contains (const char *substring) const; //TODO: case sensitive should be eradicated bool eq_nc (const char *otherstring) const