Changeset 161

Show
Ignore:
Timestamp:
03/11/08 08:07:48 (5 years ago)
Author:
Slynderdale
Message:

Some tiny fixes and additions. Fixed a sorting bug in ModuleList, added support for %nick% in URL's format and added Phergie to karma's fixed karma list.

Location:
trunk/Phergie/Plugin
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/Phergie/Plugin/Karma.php

    r141 r161  
    8484        $this->fixedKarma = array 
    8585        ( 
     86            'phergie' => '%s has karma of awesome', 
    8687            'pi' => 'pi has karma of ' . M_PI, 
    8788            'chucknorris' => '%s has karma of Warning: Integer out of range', 
  • trunk/Phergie/Plugin/ModuleList.php

    r155 r161  
    133133        // If the message is empty, aka no args were passed, return the full plugin list 
    134134        if (empty($message)) { 
     135                sort($pluginData['all']); 
    135136                $message = ($args['v'] ? 'Verbose' : 'Plugins') . ': '.implode(', ', $pluginData['all']); 
    136137        } 
  • trunk/Phergie/Plugin/Url.php

    r145 r161  
    2020    * @var string 
    2121    */ 
    22     protected $format = '%title% [ %link% ]'; 
     22    protected $format = '%nick%: %title% [ %link% ]'; 
    2323 
    2424        /** 
     
    121121                    $this->event->getSource(), 
    122122                    str_replace( 
    123                         array('%title%', '%link%'), 
    124                         array($title, $tinyUrl), 
     123                        array('%title%', '%link%', '%nick%'), 
     124                        array($title, $tinyUrl, $this->event->getNick()), 
    125125                        $this->format 
    126126                    )