# Functions called by PtokaX

OnStartup() | - Is called on script startup.
OnExit() | - Is called on script exit.
OnTimer(nTimerId) | - Default function called by timer on given interval.
UserConnected(tUser) | - Is called when user finish login sequence.
UserDisconnected(tUser) | - Is called when user disconnect or was disconnected.
RegConnected(tUser) | - Is called when reg finish login sequence.
RegDisconnected(tUser) | - Is called when reg disconnect or was disconnected.
OpConnected(tUser) | - Is called when operator finish login sequence.
OpDisconnected(tUser) | - Is called when operator disconnect or was disconnected.
OnError(sErrorMsg) | - Is called when error was found in script.
SupportsArrival(tUser, sData) | - Incoming supports from user.
ChatArrival(tUser, sData) | - Incoming chat message from user. If script return true hub don't process data.
KeyArrival(tUser, sData) | - Incoming key from user.
ValidateNickArrival(tUser, sData) | - Incoming validate nick from user.
PasswordArrival(tUser, sData) | - Incoming password from user.
VersionArrival(tUser, sData) | - Incoming version from user.
GetNickListArrival(tUser, sData) | - Incoming get nick list request from user.
MyINFOArrival(tUser, sData) | - Incoming user myinfo.
GetINFOArrival(tUser, sData) | - Incoming get info request from user.
SearchArrival(tUser, sData) | - Incoming search request from user. If script return true hub don't process data.
ToArrival(tUser, sData) | - Incoming private message from user. If script return true hub don't process data.
ConnectToMeArrival(tUser, sData) | - Incoming active connection request from user. If script return true hub don't process data.
MultiConnectToMeArrival(tUser, sData) | - Incoming multi connection request from user. If script return true hub don't process data.
RevConnectToMeArrival(tUser, sData) | - Incoming pasive connection request from user. If script return true hub don't process data.
SRArrival(tUser, sData) | - Incoming search reply from user. If script return true hub don't process data.
UDPSRArrival(tUser, sData) | - Incoming search reply from user. If script return true hub don't process data.
KickArrival(tUser, sData) | - Incoming kick command from user. If script return true hub don't process data.
OpForceMoveArrival(tUser, sData) | - Incoming redirect command from user. If script return true hub don't process data.
UnknownArrival(tUser, sData) | - Incoming unknown command from user. If script return true hub don't process data (don't disconnect user).
BotINFOArrival(tUser, sData) | - Incoming hublist pinger request from user. If script return true hub don't process data.
CloseArrival(tUser, sData) | - Incoming close command from user. If script return true hub don't process data.