ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/client.h
(Generate patch)

Comparing deliantra/server/include/client.h (file contents):
Revision 1.76 by root, Tue Apr 22 07:28:05 2008 UTC vs.
Revision 1.78 by root, Thu May 8 20:03:50 2008 UTC

1/* 1/*
2 * This file is part of Deliantra, the Roguelike Realtime MMORPG. 2 * This file is part of Deliantra, the Roguelike Realtime MMORPG.
3 * 3 *
4 * Copyright (©) 2005,2006,2007 Marc Alexander Lehmann / Robin Redeker / the Deliantra team 4 * Copyright (©) 2005,2006,2007,2008 Marc Alexander Lehmann / Robin Redeker / the Deliantra team
5 * Copyright (©) 2002,2007 Mark Wedel & Crossfire Development Team 5 * Copyright (©) 2002,2007 Mark Wedel & Crossfire Development Team
6 * Copyright (©) 1992,2007 Frank Tore Johansen 6 * Copyright (©) 1992,2007 Frank Tore Johansen
7 * 7 *
8 * Deliantra is free software: you can redistribute it and/or modify 8 * Deliantra is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by 9 * it under the terms of the GNU General Public License as published by
409 409
410#define for_all_clients(var) \ 410#define for_all_clients(var) \
411 for (int _i = 0; _i < clients.size (); ++_i) \ 411 for (int _i = 0; _i < clients.size (); ++_i) \
412 statementvar (client *, var, clients [_i]) 412 statementvar (client *, var, clients [_i])
413 413
414// returns true when the message needs special (read: perl) treatment
415static inline bool
416msg_is_special (const char *msg, bool nl_special = true)
417{
418 return msg [strcspn (msg, nl_special ? "<[&\n" : "<[&")];
419}
420
414#endif 421#endif
415 422

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines