mirror of
https://github.com/znc/znc.git
synced 2026-08-07 01:13:25 +02:00
Added code to OnUserPart() so user never actually parts the chan on irc
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@709 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
+21
-1
@@ -18,7 +18,27 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual bool OnLoad(const CString& sArgs);
|
||||
virtual bool OnLoad( const CString& sArgs );
|
||||
|
||||
virtual EModRet OnUserPart( CString& sChannel, CString& sMessage )
|
||||
{
|
||||
for ( MCString::iterator it = BeginNV(); it != EndNV(); it++ )
|
||||
{
|
||||
if ( sChannel.CaseCmp( it->first ) == 0 )
|
||||
{
|
||||
CChan* pChan = m_pUser->FindChan( sChannel );
|
||||
|
||||
if ( pChan )
|
||||
{
|
||||
pChan->JoinUser( true, "", m_pClient );
|
||||
}
|
||||
|
||||
return HALT;
|
||||
}
|
||||
}
|
||||
|
||||
return CONTINUE;
|
||||
}
|
||||
|
||||
virtual void OnModCommand( const CString& sCommand )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user