mirror of
https://github.com/anope/anope.git
synced 2026-07-07 01:43:13 +02:00
added more events
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2461 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
+3
-1
@@ -185,7 +185,7 @@ HostCore *findHostCore(HostCore * phead, const char *nick, bool* found)
|
||||
if (!nick) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
FOREACH_MOD(I_OnFindHostCore, OnFindHostCore(nick));
|
||||
while (current != NULL) {
|
||||
if (stricmp(nick, current->nick) == 0) {
|
||||
*found = true;
|
||||
@@ -258,6 +258,7 @@ HostCore *insertHostCore(HostCore * phead, HostCore * prev, const char *nick,
|
||||
newCore->next = tmp;
|
||||
}
|
||||
}
|
||||
FOREACH_MOD(I_OnInsertHostCore, OnInsertHostCore(newCore));
|
||||
return phead;
|
||||
}
|
||||
|
||||
@@ -274,6 +275,7 @@ HostCore *deleteHostCore(HostCore * phead, HostCore * prev)
|
||||
tmp = prev->next;
|
||||
prev->next = tmp->next;
|
||||
}
|
||||
FOREACH_MOD(I_OnDeleteHostCore, OnDeleteHostCore(tmp));
|
||||
delete [] tmp->vHost;
|
||||
delete [] tmp->nick;
|
||||
delete [] tmp->creator;
|
||||
|
||||
@@ -68,6 +68,7 @@ void NickCore::EraseAccess(const std::string &entry)
|
||||
for (unsigned i = 0; i < access.size(); ++i)
|
||||
if (access[i] == entry)
|
||||
{
|
||||
FOREACH_MOD(I_OnNickEraseAccess, OnNickEraseAccess(this, entry));
|
||||
access.erase(access.begin() + i);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -429,6 +429,7 @@ User *finduser(const char *nick)
|
||||
user = user->next;
|
||||
if (debug >= 3)
|
||||
alog("debug: finduser(%s) -> 0x%p", nick, static_cast<void *>(user));
|
||||
FOREACH_MOD(I_OnFindUser, OnFindUser(user));
|
||||
return user;
|
||||
}
|
||||
|
||||
@@ -474,6 +475,7 @@ User *find_byuid(const char *uid)
|
||||
while (u) {
|
||||
next = next_uid();
|
||||
if (u->GetUID() == uid) {
|
||||
FOREACH_MOD(I_OnFindUser, OnFindUser(u));
|
||||
return u;
|
||||
}
|
||||
u = next;
|
||||
|
||||
Reference in New Issue
Block a user