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:
prozacx
2005-04-23 07:24:58 +00:00
parent fccf44540a
commit c88b835837
6 changed files with 42 additions and 27 deletions

View File

@@ -26,6 +26,9 @@
* better solution then plain text.
*
* $Log$
* Revision 1.15 2005/04/23 07:24:58 prozacx
* Changed OnNick() and OnQuit() to take a vector<CChan*> of common channels
*
* Revision 1.14 2005/04/23 06:44:19 prozacx
* Changed buffer playback messages to mirror engine behavior
*
@@ -289,18 +292,14 @@ public:
{
((CChan &)cChannel).AddBuffer( SpoofChanMsg( cChannel.GetName(), cOpNick.GetNickMask() + " MODE " + sModes + " " + sArgs ) );
}
virtual void OnQuit(const CNick& cNick, const string& sMessage)
virtual void OnQuit(const CNick& cNick, const string& sMessage, const vector<CChan*> vChans)
{
vector<CChan*> vChans;
cNick.GetCommonChans( vChans, m_pUser );
for( u_int a = 0; a < vChans.size(); a++ )
vChans[a]->AddBuffer( SpoofChanMsg( vChans[a]->GetName(), cNick.GetNickMask() + " QUIT " + sMessage ) );
}
virtual void OnNick(const CNick& cNick, const string& sNewNick)
virtual void OnNick(const CNick& cNick, const string& sNewNick, const vector<CChan*> vChans)
{
vector<CChan*> vChans;
cNick.GetCommonChans( vChans, m_pUser );
for( u_int a = 0; a < vChans.size(); a++ )
vChans[a]->AddBuffer( SpoofChanMsg( vChans[a]->GetName(), cNick.GetNickMask() + " NICK " + sNewNick ) );
}