diff options
author | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-05-05 02:53:08 +0000 |
---|---|---|
committer | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-05-05 02:53:08 +0000 |
commit | e8bf6e5fdbcfa2d3c86541eb27e88ab8c1137c07 (patch) | |
tree | 8c9f7d5677ba97ff29858ea9390fee17aa541c6d /src/modules/m_uhnames.cpp | |
parent | 860d7530711857ff05993882be9c58cabe3bd3e3 (diff) |
Conversion complete, distclean compiles cleanly again. (If everything works is another story)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9636 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_uhnames.cpp')
-rw-r--r-- | src/modules/m_uhnames.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_uhnames.cpp b/src/modules/m_uhnames.cpp index 0e0c7813d..3733d1b35 100644 --- a/src/modules/m_uhnames.cpp +++ b/src/modules/m_uhnames.cpp @@ -48,7 +48,7 @@ class ModuleUHNames : public Module output.append(" UHNAMES"); } - 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) { irc::string c = command.c_str(); /* We don't actually create a proper command handler class for PROTOCTL, @@ -58,7 +58,7 @@ class ModuleUHNames : public Module */ if (c == "PROTOCTL") { - if ((pcnt) && (!strcasecmp(parameters[0],"UHNAMES"))) + if ((parameters.size()) && (!strcasecmp(parameters[0].c_str(),"UHNAMES"))) { user->Extend("UHNAMES"); return 1; |