move Shutdown to OnShutdown, send DumpError to err as well

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@358 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
imaginos
2005-05-25 04:25:28 +00:00
parent 139d27d5c4
commit 02be1cce56
+2 -13
View File
@@ -213,7 +213,7 @@ public:
for( map<CString,CUser*>::const_iterator it = msUsers.begin(); it != msUsers.end(); it++ )
{ // need to set it on all of these
m_pUser = it->second;
CBNone( "Shutdown" );
CBNone( "OnShutdown" );
m_pUser = NULL;
}
PerlInterpShutdown();
@@ -268,6 +268,7 @@ public:
sTmp[a] = ' ';
}
PutModule( sTmp );
DEBUG_ONLY( cerr << sTmp << endl );
}
TSocketManager<Csock> * GetSockManager() { return( m_pManager ); }
@@ -990,18 +991,6 @@ bool CModPerl::OnLoad( const CString & sArgs )
newCONSTSUB( pZNCSpace, "HALTMODS", newSViv( HALTMODS ) );
newCONSTSUB( pZNCSpace, "HALTCORE", newSViv( HALTCORE ) );
/*
* this goes away
for( u_int a = 0; a < 255; a++ )
{
CString sModule = sArgs.Token( a );
if ( sModule.empty() )
break;
LoadPerlMod( sModule );
}
*/
return( true );
}