From 6bd9e67851ee7294e3529c3d7a4b05aa8601a2e3 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 13 Dec 2006 20:07:08 +0000 Subject: Change m_watch to use hash_map rather than map, because of the large number of entries we deal with it will usually be faster git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5979 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_watch.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/modules') diff --git a/src/modules/m_watch.cpp b/src/modules/m_watch.cpp index 46eb601dd..27278cd89 100644 --- a/src/modules/m_watch.cpp +++ b/src/modules/m_watch.cpp @@ -27,11 +27,11 @@ using namespace std; /* $ModDesc: Provides support for the /watch command */ -/* nickname list of users watching the nick */ -typedef std::map > watchentries; +/* nickname list of users watching the nick */ +typedef nspace::hash_map, nspace::hash > watchentries; -/* nickname 'ident host signon', or empty if not online */ -typedef std::map watchlist; +/* nickname 'ident host signon', or empty if not online */ +typedef nspace::hash_map > watchlist; /* Whos watching each nickname */ watchentries whos_watching_me; -- cgit v1.2.3