Assembla home | Assembla project page
 

Changeset 158

Show
Ignore:
Timestamp:
03/10/08 02:00:20 (9 months ago)
Author:
tobias382
Message:

Fixed an issue in the Acronym plugin where a response was returned when no matches were found.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Phergie/Plugin/Acronym.php

    r156 r158  
    173173            } while (($this->limit == 0 || count($matches) < $this->limit) && $count == 1); 
    174174 
    175             $text = 'Possible matches for ' . $acronym . ': ' . implode(', ', $matches); 
    176             $this->doPrivmsg($target, $text); 
     175                        if (count($matches) > 0) { 
     176                                $text = 'Possible matches for ' . $acronym . ': ' . implode(', ', $matches); 
     177                                $this->doPrivmsg($target, $text); 
     178                        } 
    177179        } 
    178180    }