diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2014-08-05 23:09:36 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2014-08-05 23:09:36 +0200 |
commit | cf700a5a866d1c3990e63a89c2d2200b37072cfb (patch) | |
tree | 24978133af656b44fbb8fd5d40b3edf32eecc7b0 | |
parent | 68303ed788d3f92acc1bdf6798ab727228e0a190 (diff) | |
download | xK-cf700a5a866d1c3990e63a89c2d2200b37072cfb.tar.gz xK-cf700a5a866d1c3990e63a89c2d2200b37072cfb.tar.xz xK-cf700a5a866d1c3990e63a89c2d2200b37072cfb.zip |
kike: users also match their servers
-rw-r--r-- | src/kike.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |