Changes between Version 5 and Version 6 of DevelopersGuide

Show
Ignore:
Timestamp:
02/28/08 00:28:50 (5 years ago)
Author:
tobias382
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DevelopersGuide

    v5 v6  
    3939 * The `shutdown` method is called before the client terminates its connection to the server. It should be used in the same manner as a destructor. 
    4040 
    41 All plugins are implicitly passed an event instance before event handler methods are called. This can be accessed within event handler methods via {{{$this->event}}}. Most events include arguments of some sort, such as the nick of the user that sent them or some sort of message content. These can be accessed either by calling {{{$this->event->getArguments()}}} which returns an array, {{{$this->event->getArgument(#)}}} where # is the position of the argument beginning from 0 or an argument name from the list below (depends on the event type), or {{{$this->event->getArgname()}}} where Argname is an argument name from the list below (depends on the event type). 
     41All plugins are implicitly passed an event instance before event handler methods are called. This can be accessed within event handler methods via {{{$this->event}}}. Most events include arguments of some sort, such as the nick of the user that sent them or some sort of message content. These can be accessed either by calling {{{$this->event->getArguments()}}} which returns an array, {{{$this->event->getArgument(#)}}} where # is the position of the argument beginning from 0 or an argument name from the table below, or {{{$this->event->getArgname()}}} where Argname is an argument name from the table below. 
    4242 
    4343||'''Event Type'''||'''Position'''||'''Name'''||