diff options
author | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-09 15:36:50 +0000 |
---|---|---|
committer | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-09 15:36:50 +0000 |
commit | d50dddbb92036893b9188a5df9991a0d5eb80e03 (patch) | |
tree | 5b1b06074030ff07301151e8cba8742a7fc48f36 | |
parent | e533a9bb2afa6adb89c842ba6108b1867d45cc54 (diff) |
Fixes for API changes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4816 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/modules/extra/m_sqloper.cpp | 6 |
1 files 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; } |