mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-12 20:19:02 -04:00
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:
parent
b153b5d0b3
commit
f2deaa98cb
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user