From 63e3449dcd91e417d8c8710aa3ed9fc832e3bfe5 Mon Sep 17 00:00:00 2001 From: special Date: Sat, 15 Sep 2007 12:28:18 +0000 Subject: Fixed bug #414 (cosmetic issue with oper failure notices). Patch by dz git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8040 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cmd_oper.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/cmd_oper.cpp') diff --git a/src/cmd_oper.cpp b/src/cmd_oper.cpp index d9ae74bf6..8d1c753a6 100644 --- a/src/cmd_oper.cpp +++ b/src/cmd_oper.cpp @@ -118,10 +118,13 @@ CmdResult cmd_oper::Handle (const char** parameters, int pcnt, userrec *user) std::string fields; if (!match_login) fields.append("login "); - if (!match_pass) - fields.append("password "); - if (!match_hosts) - fields.append("hosts"); + 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()); -- cgit v1.2.3