From cf700a5a866d1c3990e63a89c2d2200b37072cfb Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Tue, 5 Aug 2014 23:09:36 +0200 Subject: kike: users also match their servers --- src/kike.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/kike.c b/src/kike.c index 0def999..020e8c3 100644 --- a/src/kike.c +++ b/src/kike.c @@ -1004,7 +1004,9 @@ irc_send_lusers (struct client *c) static bool irc_is_this_me (struct server_context *ctx, const char *target) { - return !fnmatch (target, ctx->server_name, 0); + // Target servers can also be matched by their users + return !irc_fnmatch (target, ctx->server_name) + || str_map_find (&ctx->users, target); } static void -- cgit v1.2.3-70-g09d2