1
0
mirror of https://github.com/anope/anope.git synced 2026-07-06 08:13:13 +02:00

Allow userless command sources

This commit is contained in:
Adam
2012-06-18 05:04:30 -04:00
parent 873d4287de
commit 2dec8e767a
153 changed files with 1029 additions and 1060 deletions
+2 -2
View File
@@ -31,7 +31,7 @@ class StatusUpdate : public Module
ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
}
void OnAccessAdd(ChannelInfo *ci, User *u, ChanAccess *access) anope_override
void OnAccessAdd(ChannelInfo *ci, CommandSource &, ChanAccess *access) anope_override
{
if (ci->c)
for (CUserList::iterator it = ci->c->users.begin(), it_end = ci->c->users.end(); it != it_end; ++it)
@@ -48,7 +48,7 @@ class StatusUpdate : public Module
}
}
void OnAccessDel(ChannelInfo *ci, User *u, ChanAccess *access) anope_override
void OnAccessDel(ChannelInfo *ci, CommandSource &, ChanAccess *access) anope_override
{
if (ci->c)
for (CUserList::iterator it = ci->c->users.begin(), it_end = ci->c->users.end(); it != it_end; ++it)