mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-13 04:29:03 -04:00
Updates to new API
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4842 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
f12b920c07
commit
46159caeed
@ -32,6 +32,7 @@
|
||||
extern int MODCOUNT;
|
||||
extern std::vector<Module*> modules;
|
||||
extern std::vector<ircd_module*> factory;
|
||||
extern InspIRCd* ServerInstance;
|
||||
|
||||
class ModuleSQLOper : public Module
|
||||
{
|
||||
@ -179,7 +180,7 @@ public:
|
||||
*/
|
||||
|
||||
user->WriteServ( "491 %s :Invalid oper credentials", user->nick);
|
||||
WriteOpers("*** WARNING! Failed oper attempt by %s!%s@%s!", user->nick, user->ident, user->host);
|
||||
ServerInstance->WriteOpers("*** WARNING! Failed oper attempt by %s!%s@%s!", user->nick, user->ident, user->host);
|
||||
log(DEFAULT,"OPER: Failed oper attempt by %s!%s@%s: user, host or password did not match.", user->nick, user->ident, user->host);
|
||||
}
|
||||
}
|
||||
@ -192,7 +193,7 @@ public:
|
||||
log(DEBUG, "Query failed: %s", res->error.Str());
|
||||
|
||||
user->WriteServ( "491 %s :Invalid oper credentials", user->nick);
|
||||
WriteOpers("*** WARNING! Failed oper attempt by %s!%s@%s! (SQL query failed: %s)", user->nick, user->ident, user->host, res->error.Str());
|
||||
ServerInstance->WriteOpers("*** WARNING! Failed oper attempt by %s!%s@%s! (SQL query failed: %s)", user->nick, user->ident, user->host, res->error.Str());
|
||||
log(DEFAULT,"OPER: Failed oper attempt by %s!%s@%s: user, host or password did not match.", user->nick, user->ident, user->host);
|
||||
}
|
||||
}
|
||||
@ -232,7 +233,7 @@ public:
|
||||
if (operhost.size())
|
||||
user->ChangeDisplayedHost(operhost.c_str());
|
||||
|
||||
WriteOpers("*** %s (%s@%s) is now an IRC operator of type %s", user->nick, user->ident, user->host, type.c_str());
|
||||
ServerInstance->WriteOpers("*** %s (%s@%s) is now an IRC operator of type %s", user->nick, user->ident, user->host, type.c_str());
|
||||
user->WriteServ("381 %s :You are now an IRC operator of type %s", user->nick, type.c_str());
|
||||
|
||||
if (!user->modes[UM_OPERATOR])
|
||||
|
Loading…
x
Reference in New Issue
Block a user