summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-04-09 06:04:52 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-04-09 06:04:52 +0000
commit1a3a4b275fe6ce3dd894103aa754946c0122b4f2 (patch)
tree362a39d9f6ba274350120821775e85fdc111ee77 /src
parenta840ef8ae846c294e37952d066a2e0e1b4f72898 (diff)
Removed the OnFind events, they are not necessary anymore and just waste CPU
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2872 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r--src/modes.cpp4
-rw-r--r--src/nickserv.c6
-rw-r--r--src/users.c2
3 files changed, 2 insertions, 10 deletions
diff --git a/src/modes.cpp b/src/modes.cpp
index 7525d36e7..64a3fc349 100644
--- a/src/modes.cpp
+++ b/src/modes.cpp
@@ -426,8 +426,8 @@ void StackerInfo::AddMode(void *Mode, bool Set, const std::string &Param)
otherlist = &AddModes;
}
- /* Note that this whole thing works fine with status and list modes, because those have paramaters
- * which make them not unique.
+ /* Note that this whole thing works fine with status and list modes, because those have parameters
+ * which make them unique.
*/
it = std::find(list->begin(), list->end(), std::make_pair(Mode, Param));
if (it != list->end())
diff --git a/src/nickserv.c b/src/nickserv.c
index 6d392210a..7cb98c121 100644
--- a/src/nickserv.c
+++ b/src/nickserv.c
@@ -451,8 +451,6 @@ NickRequest *findrequestnick(const char *nick)
return NULL;
}
- FOREACH_MOD(I_OnFindRequestNick, OnFindRequestNick(nick));
-
for (nr = nrlists[HASH(nick)]; nr; nr = nr->next)
{
if (stricmp(nr->nick, nick) == 0)
@@ -476,8 +474,6 @@ NickAlias *findnick(const char *nick)
return NULL;
}
- FOREACH_MOD(I_OnFindNick, OnFindNick(nick));
-
for (na = nalists[HASH(nick)]; na; na = na->next)
{
if (stricmp(na->nick, nick) == 0)
@@ -508,8 +504,6 @@ NickCore *findcore(const char *nick)
return NULL;
}
- FOREACH_MOD(I_OnFindCore, OnFindCore(nick));
-
for (nc = nclists[HASH(nick)]; nc; nc = nc->next)
{
if (stricmp(nc->display, nick) == 0)
diff --git a/src/users.c b/src/users.c
index 71fd5e8b1..219ccadcd 100644
--- a/src/users.c
+++ b/src/users.c
@@ -476,7 +476,6 @@ User *finduser(const std::string &nick)
while (user && ci_nick != user->nick)
user = user->next;
Alog(LOG_DEBUG_3) << "finduser(" << nick << ") -> " << static_cast<void *>(user);
- FOREACH_MOD(I_OnFindUser, OnFindUser(user));
return user;
}
@@ -691,7 +690,6 @@ User *find_byuid(const std::string &uid)
while (u) {
next = next_uid();
if (u->GetUID() == uid) {
- FOREACH_MOD(I_OnFindUser, OnFindUser(u));
return u;
}
u = next;