From 19157777c5f977fddbcfdc8cdad78e12bf0d6bbb Mon Sep 17 00:00:00 2001 From: w00t Date: Tue, 28 Aug 2007 13:48:28 +0000 Subject: Remove the last uses of localised fake clients. This removes a lot of allocations (and uses of UIDs), and cleans things up a bit git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7943 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_samode.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/modules/m_samode.cpp') diff --git a/src/modules/m_samode.cpp b/src/modules/m_samode.cpp index b49efd35e..0f5813edc 100644 --- a/src/modules/m_samode.cpp +++ b/src/modules/m_samode.cpp @@ -31,11 +31,7 @@ class cmd_samode : public command_t /* * Handles an SAMODE request. Notifies all +s users. */ - - userrec* n = new userrec(ServerInstance); - n->SetFd(FD_MAGIC_NUMBER); - ServerInstance->SendMode(parameters,pcnt,n); - delete n; + ServerInstance->SendMode(parameters, pcnt, ServerInstance->FakeClient); if (ServerInstance->Modes->GetLastParse().length()) { -- cgit v1.3.1-10-gc9f91