Changeset 93
- Timestamp:
- 03/01/08 18:10:58 (9 months ago)
- Files:
-
- trunk/Phergie/Plugin/Quit.php (modified) (1 diff)
- trunk/Phergie/phergie.ini (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Phergie/Plugin/Quit.php
r76 r93 23 23 * @return void 24 24 */ 25 public function handleQuit() 26 { 27 $reason = $this->getPluginIni('reason'); 28 if (empty($reason)) { 29 $reason = 'by request of %nick%'; 30 } 31 $reason = str_replace('%nick%', $this->event->getNick(), $reason); 32 $this->doQuit($reason); 33 } 34 25 35 public function onDoQuit() 26 36 { 27 $this-> doQuit('by request of ' . $this->event->getNick());37 $this->handleQuit(); 28 38 } 29 39 30 40 public function onDoDie() 31 41 { 32 $this-> doQuit('bows to ' . $this->event->getNick() .' and commits seppuku');42 $this->handleQuit(); 33 43 } 34 44 } trunk/Phergie/phergie.ini
r92 r93 158 158 159 159 ;----------------------------------------------------------------------------- 160 ; Quit 161 ;----------------------------------------------------------------------------- 162 163 ; quit.reason : 164 ; custom reason message to use when quitting 165 quit.reason = 166 167 ;----------------------------------------------------------------------------- 160 168 ; URL 161 169 ;-----------------------------------------------------------------------------