From 360a254be0e55e975998d0f3a5ff301ac3346f72 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Sun, 26 Aug 2012 13:24:54 +0200 Subject: Enhance "ServiceMask" to handle a list of masks The "ServiceMask" variable in "Server" blocks now can handle more than one mask using the new MatchCaseInsensitiveList() function. This makes marking "service clients" much more specific, which is a good thing per se, but which is the prerequisite for reasonably blocking these nick names, too (see commit a6dd2e3 for details). --- src/ngircd/conf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/ngircd/conf.c b/src/ngircd/conf.c index 41b5469a..3966dc90 100644 --- a/src/ngircd/conf.c +++ b/src/ngircd/conf.c @@ -648,7 +648,8 @@ Conf_NickIsService(int ConfServer, const char *Nick) assert (ConfServer >= 0); assert (ConfServer < MAX_SERVERS); - return MatchCaseInsensitive(Conf_Server[ConfServer].svs_mask, Nick); + return MatchCaseInsensitiveList(Conf_Server[ConfServer].svs_mask, + Nick, ","); } /** -- cgit 1.4.1