Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

Commit

Permalink
Small amendments to pull request 218
Browse files Browse the repository at this point in the history
  • Loading branch information
elazar committed Jul 1, 2012
1 parent 7a4e0d8 commit 1bfce97
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Phergie/Plugin/Remind.php
Expand Up @@ -165,12 +165,10 @@ protected function handleRemind($recipient, $message)
$source = $this->getEvent()->getSource();
$nick = $this->getEvent()->getNick();

// The bot shouldn't be the recipient
// Fix for issue #211
$myself = $this->getConnection()->getNick();
if ($myself == $recipient) {
$this->doPrivmsg($source, '<meme>You are doing it wrong</meme>');
return;
$this->doPrivmsg($source, 'You can\'t send reminders to me.');
return;
}

if (!$this->getEvent()->isInChannel()) {
Expand Down

0 comments on commit 1bfce97

Please sign in to comment.