Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge remote-tracking branch 'gelignite/issue211' into pull/218

  • Loading branch information...
commit 7a4e0d8ff1c78c312ff23838b3f6f46170596bf9 2 parents eada3cc + 557846a
Matthew Turland authored July 01, 2012

Showing 1 changed file with 8 additions and 0 deletions. Show diff stats Hide diff stats

  1. 8  Phergie/Plugin/Remind.php
8  Phergie/Plugin/Remind.php
@@ -164,6 +164,14 @@ protected function handleRemind($recipient, $message)
164 164
     {
165 165
         $source = $this->getEvent()->getSource();
166 166
         $nick = $this->getEvent()->getNick();
  167
+        
  168
+        // The bot shouldn't be the recipient
  169
+        // Fix for issue #211
  170
+        $myself = $this->getConnection()->getNick();
  171
+        if ($myself == $recipient) {
  172
+          $this->doPrivmsg($source, '<meme>You are doing it wrong</meme>');
  173
+          return;
  174
+        }
167 175
 
168 176
         if (!$this->getEvent()->isInChannel()) {
169 177
             $this->doPrivmsg($source, 'Reminders must be requested in-channel.');

0 notes on commit 7a4e0d8

Please sign in to comment.
Something went wrong with that request. Please try again.