IPluginHost.HookCommand Method

AdiIRC API v2

IPluginHostHookCommand Method

Hook a command into AdiIRC, the handler will be triggered when the command is used.

Namespace:  AdiIRCAPIv2.Interfaces
Assembly:  AdiIRCAPIv2 (in AdiIRCAPIv2.dll) Version: 2.0.1.4 (2.0.1.4)
Syntax
bool HookCommand(
	string command,
	RegisteredCommand handler
)
Function HookCommand ( 
	command As String,
	handler As RegisteredCommand
) As Boolean
bool HookCommand(
	String^ command, 
	RegisteredCommand^ handler
)
abstract HookCommand : 
        command : string * 
        handler : RegisteredCommand -> bool 

Parameters

command
Type: SystemString
Name of the command
handler
Type: AdiIRCAPIv2.DelegatesRegisteredCommand
Handler that triggers when the command is used

Return Value

Type: Boolean
True/False depending if hooking the command was successful
See Also