1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-06-28 09:36:37 +02:00
Files
unrealircd/include
Bram Matthys 0d2d4d5bca Rename match() and _match() to match_simple() -AND- invert the return value
of match_simple() and match_esc(). So, developers, be aware, this is how
you should use the function in a correct way:
if (match_simple("*fun*", str))
    printf("It was fun\n");

Rationale:
I've always been annoyed by the inversed logic, even though it was similar
to strcmp. So I've reverted it.
I could have chosen to maintain match() rather than this match_simple()
name, but this way I force (3rd party module) devs to update their function,
while otherwise everything would mysteriously fail due to the inverted logic.
2019-08-17 09:20:49 +02:00
..
2019-08-11 18:02:13 +02:00
2002-03-05 23:09:39 +00:00
2015-10-16 15:32:10 -07:00
2015-07-28 21:44:32 +02:00
2002-02-16 20:15:41 +00:00
2016-05-12 16:57:32 +08:00
2000-02-28 22:45:44 +00:00
2019-08-12 14:35:32 +02:00
2004-05-13 16:39:23 +00:00
2018-12-19 13:58:44 +01:00
2019-05-12 13:29:40 +02:00
2004-02-22 02:52:12 +00:00