mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Changed OnNick() and OnQuit() to take a vector<CChan*> of common channels
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@164 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
12
Modules.cpp
12
Modules.cpp
@@ -149,8 +149,8 @@ void CModule::OnModCommand(const string& sCommand) {}
|
||||
void CModule::OnModNotice(const string& sMessage) {}
|
||||
void CModule::OnModCTCP(const string& sMessage) {}
|
||||
|
||||
void CModule::OnQuit(const CNick& Nick, const string& sMessage) {}
|
||||
void CModule::OnNick(const CNick& Nick, const string& sNewNick) {}
|
||||
void CModule::OnQuit(const CNick& Nick, const string& sMessage, const vector<CChan*> vChans) {}
|
||||
void CModule::OnNick(const CNick& Nick, const string& sNewNick, const vector<CChan*> vChans) {}
|
||||
void CModule::OnKick(const CNick& Nick, const string& sKickedNick, const CChan& Channel, const string& sMessage) {}
|
||||
void CModule::OnJoin(const CNick& Nick, const CChan& Channel) {}
|
||||
void CModule::OnPart(const CNick& Nick, const CChan& Channel) {}
|
||||
@@ -299,15 +299,15 @@ bool CModules::OnUserRaw(string& sLine) {
|
||||
return false;
|
||||
}
|
||||
|
||||
void CModules::OnQuit(const CNick& Nick, const string& sMessage) {
|
||||
void CModules::OnQuit(const CNick& Nick, const string& sMessage, const vector<CChan*> vChans) {
|
||||
for (unsigned int a = 0; a < size(); a++) {
|
||||
(*this)[a]->OnQuit(Nick, sMessage);
|
||||
(*this)[a]->OnQuit(Nick, sMessage, vChans);
|
||||
}
|
||||
}
|
||||
|
||||
void CModules::OnNick(const CNick& Nick, const string& sNewNick) {
|
||||
void CModules::OnNick(const CNick& Nick, const string& sNewNick, const vector<CChan*> vChans) {
|
||||
for (unsigned int a = 0; a < size(); a++) {
|
||||
(*this)[a]->OnNick(Nick, sNewNick);
|
||||
(*this)[a]->OnNick(Nick, sNewNick, vChans);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user