Verlihub's Perl scripting
Description
This document describes the callbacks that are called by verlihub on various events as well as
the verlihub's methods and how they can be called from perl scripts. When i'm writing this, most
of them don't even exist. This document is alike a design plan for me.
Introduction
On diverse evennts that happen on the hub, your script may be notified by verlihub calling a given sub
of your script with given parameters and sometimes waiting for the result value of the procedure. This
makes you being an observer of what is happening on the hub.
To make you also an Actor, you're provided by some functions (APIs) tha you can call and which will do
something in verlihub. For example sending something to someone. Kicking users, etc..
Callback functions
This is a list of perl subs that may be called (if you implement them) by verlihub in some situations.
VH_OnTimer
VH_OnUserLogin(Nick)
VH_OnUserCommand(Nick, Command)
VH_OnOperatorCommand(Nick, Command)
VH_OnValidateTag(Nick,Tag)
VH_OnParsedMsgPM(Nick, Message, Receiver)
VH_OnParsedMsgChat(Nick, Message)
Verlihub APIs
This is a list of functions that you can call from your perl subs.
vh::SendDataToUser(Data, NickName)
vh::SendDataToAll(Data)
vh::SendDataToAllWithNick(DataStart,DataEnd)
vh::GetMyINFO(Nick)
Daniel Muller (Verliba)