diff options
| author | 2006-12-13 20:08:45 +0000 | |
|---|---|---|
| committer | 2006-12-13 20:08:45 +0000 | |
| commit | a320a5c787b29baecc2301dab83f885f330794d6 (patch) | |
| tree | 44045483e487aea537a2e3e731a556381aa1127a /src/modules/m_watch.cpp | |
| parent | Change m_watch to use hash_map rather than map, because of the large number o... (diff) | |
| download | inspircd++-a320a5c787b29baecc2301dab83f885f330794d6.tar.gz inspircd++-a320a5c787b29baecc2301dab83f885f330794d6.tar.bz2 inspircd++-a320a5c787b29baecc2301dab83f885f330794d6.zip | |
Turn watchlist back to map. watchlist is small, watchentries is large, only watchentries needs to be hash_map
(watchentries is the primary index of whos watching each nick, watchlist is the small nicklist attached to each user)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5980 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_watch.cpp')
| -rw-r--r-- | src/modules/m_watch.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_watch.cpp b/src/modules/m_watch.cpp index 27278cd89..bd75fc3c9 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 nspace::hash_map<irc::string, std::deque<userrec*>, nspace::hash<irc::string> > watchentries; +/* nickname list of users watching the nick */ +typedef nspace::hash_map<irc::string, std::deque<userrec*>, nspace::hash<irc::string> > watchentries; -/* nickname 'ident host signon', or empty if not online */ -typedef nspace::hash_map<irc::string, std::string, nspace::hash<irc::string> > watchlist; +/* nickname 'ident host signon', or empty if not online */ +typedef std::map<irc::string, std::string> watchlist; /* Whos watching each nickname */ watchentries whos_watching_me; |
