Giter Club home page Giter Club logo

Comments (6)

elazar avatar elazar commented on July 25, 2024

Potential patch from Evan Fribourg (dotEvan):
diff -ur Phergie/Plugin/Remind.php Phergie_new/Plugin/Remind.php
--- Phergie/Plugin/Remind.php 2009-07-10 20:36:44.000000000 -0700
+++ Phergie_new/Plugin/Remind.php 2009-09-04 17:01:17.000000000 -0700
@@ -236,7 +236,7 @@
'time' => date(DATE_RFC822),
'channel' => $source,
'recipient' => strtolower($recipient),
- 'sender' => strtolower($nick),
+ 'sender' => $nick,
'message' => $message
));
} catch (PDOException $e) { }

from phergie.

berry-langerak avatar berry-langerak commented on July 25, 2024

I've actually solved this the other way around: while looking up if there are any messages left, do a strtolower( ) over the nick. Here's the diff:

$ svn diff Plugin/Remind.php 
Index: Plugin/Remind.php
===================================================================
--- Plugin/Remind.php   (revision 421)
+++ Plugin/Remind.php   (working copy)
@@ -262,6 +262,7 @@
      */
     protected function deliverReminders($channel, $nick)
     {
+        $nick = strtolower( $nick );
         if ($channel[0] != '#') {
             // private message, not a channel, so don't check
             return;

That seems to work like a charm. To clarify: Phergie is in use on three of the channels I frequent, and after a little debugging session we indeed figured out that it had something to do with the use of capital letters in the nick. My own nick never gave any issues, as it only contains lower-case characters, while other people were struggling. That behaviour seemed to be solved after adding the line mentioned in the diff.

from phergie.

elazar avatar elazar commented on July 25, 2024

Thanks for the report berry! Reminder hasn't been ported over to 2.x yet, but at least now we know what the cause of the issue is. :) We appreciate your contribution.

from phergie.

berry-langerak avatar berry-langerak commented on July 25, 2024

You're most welcome!

from phergie.

jlogsdon avatar jlogsdon commented on July 25, 2024

I've ported it over with fixes to the case-sensitivity issue.

http://github.com/jlogsdon/phergie/commit/03bb46c04e4ddc1f1a50497f208ab602e629a20a
http://github.com/jlogsdon/phergie/commit/0fb39f7ef50f4f85480ce18c75d3b3d66dea46a2
http://github.com/jlogsdon/phergie/commit/01555b1f21563586a675e493403266dd199a687c

I'm not really seeing a purpose for the in memory store, but I went ahead and just ported the whole thing.

from phergie.

elazar avatar elazar commented on July 25, 2024

Appears to be working great! Closing this ticket, thanks jlogsdon and everyone else who contributed!

from phergie.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.