Changeset 12

Show
Ignore:
Timestamp:
02/07/08 02:33:13 (5 years ago)
Author:
tobias382
Message:

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

Location:
trunk/Phergie
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/Phergie/Client/Driver.php

    r8 r12  
    3838 
    3939    /** 
    40     * Terminates any existing connection to the server. 
     40    * Terminates any existing connection to the server. Note that this  
     41    * should never be used by an event handler; doQuit should be called  
     42    * instead. 
    4143    */ 
    4244    public function disconnect(); 
  • trunk/Phergie/Event/Handler/Quit.php

    r8 r12  
    1111    { 
    1212        if($event->getArgument(1)=='quit' && $this->isAdmin($event)) { 
    13                 $this->disconnect(); 
     13                $this->doQuit('by request of ' . $event->getNick()); 
    1414        } 
    1515    }