… | |
… | |
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 |
|
|
415 | static inline bool |
|
|
416 | msg_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 | |