From e8bf6e5fdbcfa2d3c86541eb27e88ab8c1137c07 Mon Sep 17 00:00:00 2001 From: peavey Date: Mon, 5 May 2008 02:53:08 +0000 Subject: 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 --- src/modules/m_uhnames.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_uhnames.cpp') 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 ¶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; -- cgit v1.2.3