diff options
| author | 2008-05-05 02:29:09 +0000 | |
|---|---|---|
| committer | 2008-05-05 02:29:09 +0000 | |
| commit | 1b4925f99fb39d59e88c98db7fae8512e7f54c7b (patch) | |
| tree | 3e6a25a6a1319cfff8b1f429c7ca5e51b6432928 /src/modules/extra/m_sqloper.cpp | |
| parent | Convert more (diff) | |
Convert even more
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9630 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/extra/m_sqloper.cpp')
| -rw-r--r-- | src/modules/extra/m_sqloper.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/modules/extra/m_sqloper.cpp b/src/modules/extra/m_sqloper.cpp index fc3a76a6e..09b577aed 100644 --- a/src/modules/extra/m_sqloper.cpp +++ b/src/modules/extra/m_sqloper.cpp @@ -111,7 +111,7 @@ public: hashtype = assign(Conf.ReadValue("sqloper", "hash", 0)); } - virtual int OnPreCommand(const std::string &command, const char* const* parameters, int pcnt, User *user, bool validated, const std::string &original_line) + virtual int OnPreCommand(const std::string &command, const std::vector<std::string> ¶meters, User *user, bool validated, const std::string &original_line) { if ((validated) && (command == "OPER")) { @@ -276,8 +276,10 @@ public: if (oper_command) { - const char* params[] = { username.c_str(), pass.c_str() }; - oper_command->Handle(params, 2, user); + std::vector<std::string> params; + params[0] = username; + params[1] = pass; + oper_command->Handle(params, user); } else { |
