Changes between Version 5 and Version 6 of DevelopersGuide
- Timestamp:
- 02/28/08 00:28:50 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DevelopersGuide
v5 v6 39 39 * 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. 40 40 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).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 table below, or {{{$this->event->getArgname()}}} where Argname is an argument name from the table below. 42 42 43 43 ||'''Event Type'''||'''Position'''||'''Name'''||