--- deliantra/server/include/client.h 2008/05/06 16:55:25 1.77 +++ deliantra/server/include/client.h 2008/05/08 20:03:50 1.78 @@ -411,5 +411,12 @@ for (int _i = 0; _i < clients.size (); ++_i) \ statementvar (client *, var, clients [_i]) +// returns true when the message needs special (read: perl) treatment +static inline bool +msg_is_special (const char *msg, bool nl_special = true) +{ + return msg [strcspn (msg, nl_special ? "<[&\n" : "<[&")]; +} + #endif