]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/coremods/core_wallops.cpp
Introduce Stats::Context, pass it to the OnStats hook and switch all code to it
[user/henk/code/inspircd.git] / src / coremods / core_wallops.cpp
index 276da51dcfef5ec6aa98dcb30a6373b8dc1c1e21..0210df8ee869d185be7f52e79a38a893d697f2f4 100644 (file)
@@ -55,11 +55,12 @@ CmdResult CommandWallops::Handle (const std::vector<std::string>& parameters, Us
        std::string wallop("WALLOPS :");
        wallop.append(parameters[0]);
 
-       for (LocalUserList::const_iterator i = ServerInstance->Users->local_users.begin(); i != ServerInstance->Users->local_users.end(); i++)
+       const UserManager::LocalList& list = ServerInstance->Users.GetLocalUsers();
+       for (UserManager::LocalList::const_iterator i = list.begin(); i != list.end(); ++i)
        {
                User* t = *i;
                if (t->IsModeSet(wallopsmode))
-                       user->WriteTo(t,wallop);
+                       t->WriteFrom(user, wallop);
        }
 
        return CMD_SUCCESS;