X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fngircd%2Firc-metadata.c;h=2a3de1b454cbba48cb0cbe6739f5f49a3350c801;hb=dc6807338e240d8093f43337dab7bfe488c35c4a;hp=f7948e6a0d42cbabcdcd1f2a5e0db6731720884e;hpb=08f9d31d60220e8a389a2d24f42625be7749f090;p=ngircd-alex.git diff --git a/src/ngircd/irc-metadata.c b/src/ngircd/irc-metadata.c index f7948e6a..2a3de1b4 100644 --- a/src/ngircd/irc-metadata.c +++ b/src/ngircd/irc-metadata.c @@ -1,6 +1,6 @@ /* * ngIRCd -- The Next Generation IRC Daemon - * Copyright (c)2001-2013 Alexander Barton (alex@barton.de) and Contributors. + * Copyright (c)2001-2015 Alexander Barton (alex@barton.de) and Contributors. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -18,21 +18,18 @@ * IRC metadata commands */ -#include "imp.h" #include -#include +#include #include #include "conn-func.h" #include "channel.h" -#include "conn-encoding.h" +#include "irc-macros.h" #include "irc-write.h" #include "log.h" #include "messages.h" #include "parse.h" -#include "tool.h" -#include "exp.h" #include "irc-metadata.h" /** @@ -51,6 +48,8 @@ IRC_METADATA(CLIENT *Client, REQUEST *Req) assert(Client != NULL); assert(Req != NULL); + _IRC_REQUIRE_PREFIX_OR_RETURN_(Client, Req) + prefix = Client_Search(Req->prefix); if (!prefix) return IRC_WriteErrClient(Client, ERR_NOSUCHNICK_MSG,