|
Revision 12, 398 bytes
(checked in by tobias382, 5 years ago)
|
|
Fixes #7
* Modified Quit plugin to use doQuit instead of disconnect
* Added a note in the base Driver class for plugins not to use disconnect
|
| Line | |
|---|
| 1 | <?php |
|---|
| 2 | |
|---|
| 3 | |
|---|
| 4 | |
|---|
| 5 | |
|---|
| 6 | require_once 'Phergie/Event/Handler/AdminCommand.php'; |
|---|
| 7 | |
|---|
| 8 | class Phergie_Event_Handler_Quit extends Phergie_Event_Handler_AdminCommand |
|---|
| 9 | { |
|---|
| 10 | public function onPrivmsg(Phergie_Event_Request $event) |
|---|
| 11 | { |
|---|
| 12 | if($event->getArgument(1)=='quit' && $this->isAdmin($event)) { |
|---|
| 13 | $this->doQuit('by request of ' . $event->getNick()); |
|---|
| 14 | } |
|---|
| 15 | } |
|---|
| 16 | } |
|---|