fix packet throttling with handler overlay

This commit is contained in:
mark 2007-08-09 22:01:27 +00:00
parent d5ebe946e9
commit 4915268e43
3 changed files with 17 additions and 18 deletions

View file

@ -251,6 +251,19 @@ namespace Server.Network
m_EncodedHandlersHigh.Remove( packetID );
}
public static void RegisterThrottler( int packetID, ThrottlePacketCallback t )
{
PacketHandler ph = GetHandler( packetID );
if ( ph != null )
ph.ThrottleCallback = t;
ph = Get6017Handler( packetID );
if ( ph != null )
ph.ThrottleCallback = t;
}
private static void UnhandledBF( NetState state, PacketReader pvSrc )
{
}