X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fngircd%2Fop.c;h=79d01860fc1ec5fa2b315e980c64c475d2e3363b;hb=e8e04b4c8fd63d075ffa6b85327c4b90d7005051;hp=4a1135502ab17e8546af32a875b8747c2fe0d766;hpb=a534e71e8da9a7bab55e7e76358a60dcbd3e25d5;p=ngircd.git diff --git a/src/ngircd/op.c b/src/ngircd/op.c index 4a113550..79d01860 100644 --- a/src/ngircd/op.c +++ b/src/ngircd/op.c @@ -1,6 +1,6 @@ /* * ngIRCd -- The Next Generation IRC Daemon - * Copyright (c)2001-2014 Alexander Barton (alex@barton.de) and Contributors. + * Copyright (c)2001-2018 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 @@ -40,12 +40,14 @@ Op_NoPrivileges(CLIENT * Client, REQUEST * Req) from = Client_Search(Req->prefix); if (from) { - Log(LOG_NOTICE, "No privileges: client \"%s\" (%s), command \"%s\"!", + Log(LOG_ERR|LOG_snotice, + "No privileges: client \"%s\" (%s), command \"%s\"!", Req->prefix, Client_Mask(Client), Req->command); return IRC_WriteErrClient(from, ERR_NOPRIVILEGES_MSG, Client_ID(from)); } else { - Log(LOG_NOTICE, "No privileges: client \"%s\", command \"%s\"!", + Log(LOG_ERR|LOG_snotice, + "No privileges: client \"%s\", command \"%s\"!", Client_Mask(Client), Req->command); return IRC_WriteErrClient(Client, ERR_NOPRIVILEGES_MSG, Client_ID(Client)); @@ -56,7 +58,7 @@ Op_NoPrivileges(CLIENT * Client, REQUEST * Req) * Check that the originator of a request is an IRC operator and allowed * to administer this server. * - * @param CLient Client from which the command has been received. + * @param Client Client from which the command has been received. * @param Req Request structure. * @return CLIENT structure of the client that initiated the command or * NULL if client is not allowed to execute operator commands.