Changeset 113

Show
Ignore:
Timestamp:
03/03/08 23:59:42 (5 years ago)
Author:
tobias382
Message:

* Fixed a bug in the Autojoin plugin where the channel list was not processed correctly when using a space as a delimiter (thanks Slynderdale)
* Modified the Spellcheck plugin to not require a space between the word being checked and the spell check request trigger (thanks Slynderdale)

Location:
trunk/Phergie/Plugin
Files:
2 modified

Legend:

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

    r71 r113  
    2828                $channels = $this->getPluginIni('channels'); 
    2929                if (!empty ($channels)) { 
    30                     $this->doJoin(implode(' ', preg_split('#[, ]+#', $channels))); 
     30                    $this->doJoin(implode(',', preg_split('#[, ]+#', $channels))); 
    3131                } 
    3232                break; 
  • trunk/Phergie/Plugin/Spellcheck.php

    r107 r113  
    7171        $message = $this->event->getArgument(1); 
    7272         
    73         if (preg_match('#(\S+)\s+\(sp\??\)#i', $message, $m)) { 
     73        if (preg_match('#(\S+)\s*\(sp\??\)#i', $message, $m)) { 
    7474            $word = $m[1]; 
    7575            if (!pspell_check($this->pspell, $word)) {