From d50dddbb92036893b9188a5df9991a0d5eb80e03 Mon Sep 17 00:00:00 2001 From: om Date: Wed, 9 Aug 2006 15:36:50 +0000 Subject: Fixes for API changes git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4816 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/extra/m_sqloper.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/modules/extra/m_sqloper.cpp b/src/modules/extra/m_sqloper.cpp index 89383ee47..2d26bd8fa 100644 --- a/src/modules/extra/m_sqloper.cpp +++ b/src/modules/extra/m_sqloper.cpp @@ -230,15 +230,13 @@ public: std::string operhost = Conf.ReadValue("type", "host", j); if (operhost.size()) - user->ChangeDisplayedHost(operhost); + user->ChangeDisplayedHost(operhost.c_str()); - strlcpy(user->oper, type.c_str(), NICKMAX-1); - 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]) - user->Oper(); + user->Oper(type); return true; } -- cgit v1.2.3