--- deliantra/server/common/shstr.C 2010/04/15 00:36:51 1.44 +++ deliantra/server/common/shstr.C 2010/08/28 23:49:03 1.45 @@ -61,6 +61,15 @@ shstr_vec shstr_tmp::nullvec = { STRHSH_NULL, 0, 0xffffffff, "(null)" }; +bool +shstr_tmp::contains (const char *substring) const +{ + //TODO: this is supposed to check for comma-seperation... + return s != null () + && substring + && strstr (s, substring); +} + const char * shstr::find (const char *s) {