Fixed bug #414 (cosmetic issue with oper failure notices). Patch by dz

git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@8041 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
special 2007-09-15 12:31:21 +00:00
parent b153b5d0b3
commit f2deaa98cb

View File

@ -118,10 +118,13 @@ CmdResult cmd_oper::Handle (const char** parameters, int pcnt, userrec *user)
std::string fields;
if (!match_login)
fields.append("login ");
else
{
if (!match_pass)
fields.append("password ");
if (!match_hosts)
fields.append("hosts");
}
user->WriteServ("491 %s :Invalid oper credentials",user->nick);
snprintf(broadcast, MAXBUF, "WARNING! Failed oper attempt by %s!%s@%s using login '%s': The following fields do not match: %s",user->nick,user->ident,user->host, parameters[0], fields.c_str());