From f5c3e3782bfeb3ffb634f86eadb8ffecbc36f176 Mon Sep 17 00:00:00 2001 From: w00t Date: Wed, 2 Jan 2008 22:58:47 +0000 Subject: Add param 'opername' to event OnPostOper. This will help make a (slightly nicer) version of dz's patch to allow modes in git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8615 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/commands/cmd_oper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/commands/cmd_oper.cpp') diff --git a/src/commands/cmd_oper.cpp b/src/commands/cmd_oper.cpp index 55277b1ba..8d4eae8cb 100644 --- a/src/commands/cmd_oper.cpp +++ b/src/commands/cmd_oper.cpp @@ -108,7 +108,7 @@ CmdResult CommandOper::Handle (const char** parameters, int, User *user) ServerInstance->SNO->WriteToSnoMask('o',"%s (%s@%s) is now an IRC operator of type %s (using oper '%s')",user->nick,user->ident,user->host,irc::Spacify(OperType),parameters[0]); user->WriteServ("381 %s :You are now %s %s",user->nick, strchr("aeiouAEIOU", *OperType) ? "an" : "a", irc::Spacify(OperType)); if (!user->IsModeSet('o')) - user->Oper(OperType); + user->Oper(OperType, LoginName); } else { -- cgit v1.2.3