From 9924e5631193ad581d885380fd11ae8bfb91fa0b Mon Sep 17 00:00:00 2001 From: danieldg Date: Wed, 21 Oct 2009 23:44:48 +0000 Subject: Split LocalUser and RemoteUser git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11940 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_cloaking.cpp | 2 +- src/modules/m_close.cpp | 2 +- src/modules/m_jumpserver.cpp | 2 +- src/modules/m_nationalchars.cpp | 2 +- src/modules/m_spanningtree/uid.cpp | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/modules') diff --git a/src/modules/m_cloaking.cpp b/src/modules/m_cloaking.cpp index 3be6e2163..c61868dc3 100644 --- a/src/modules/m_cloaking.cpp +++ b/src/modules/m_cloaking.cpp @@ -305,7 +305,7 @@ class ModuleCloaking : public Module void CloakExistingUsers() { std::string* cloak; - for (std::vector::iterator u = ServerInstance->Users->local_users.begin(); u != ServerInstance->Users->local_users.end(); u++) + for (std::vector::iterator u = ServerInstance->Users->local_users.begin(); u != ServerInstance->Users->local_users.end(); u++) { cloak = cu.ext.get(*u); if (!cloak) diff --git a/src/modules/m_close.cpp b/src/modules/m_close.cpp index 24831a807..5c0c0188b 100644 --- a/src/modules/m_close.cpp +++ b/src/modules/m_close.cpp @@ -37,7 +37,7 @@ class CommandClose : public Command { std::map closed; - std::vector::reverse_iterator u = ServerInstance->Users->local_users.rbegin(); + std::vector::reverse_iterator u = ServerInstance->Users->local_users.rbegin(); while (u != ServerInstance->Users->local_users.rend()) { User* user = *u++; diff --git a/src/modules/m_jumpserver.cpp b/src/modules/m_jumpserver.cpp index b2bbe0d8c..d46e85bdd 100644 --- a/src/modules/m_jumpserver.cpp +++ b/src/modules/m_jumpserver.cpp @@ -95,7 +95,7 @@ class CommandJumpserver : public Command if (redirect_all_immediately) { /* Redirect everyone but the oper sending the command */ - for (std::vector::const_iterator i = ServerInstance->Users->local_users.begin(); i != ServerInstance->Users->local_users.end(); i++) + for (std::vector::const_iterator i = ServerInstance->Users->local_users.begin(); i != ServerInstance->Users->local_users.end(); i++) { User* t = *i; if (!IS_OPER(t)) diff --git a/src/modules/m_nationalchars.cpp b/src/modules/m_nationalchars.cpp index 5e919dad6..e8a70d148 100755 --- a/src/modules/m_nationalchars.cpp +++ b/src/modules/m_nationalchars.cpp @@ -258,7 +258,7 @@ class ModuleNationalChars : public Module if (!forcequit) return; - for (std::vector::iterator iter = ServerInstance->Users->local_users.begin(); iter != ServerInstance->Users->local_users.end(); ++iter) + for (std::vector::iterator iter = ServerInstance->Users->local_users.begin(); iter != ServerInstance->Users->local_users.end(); ++iter) { /* Fix by Brain: Dont quit UID users */ User* n = *iter; diff --git a/src/modules/m_spanningtree/uid.cpp b/src/modules/m_spanningtree/uid.cpp index 4e3b07eea..340b7f496 100644 --- a/src/modules/m_spanningtree/uid.cpp +++ b/src/modules/m_spanningtree/uid.cpp @@ -86,7 +86,7 @@ bool TreeSocket::ParseUID(const std::string &source, parameterlist ¶ms) User* _new = NULL; try { - _new = new User(params[0]); + _new = new RemoteUser(params[0]); } catch (...) { -- cgit v1.2.3