Comments (6)
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.
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.
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.
You're most welcome!
from phergie.
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.
Appears to be working great! Closing this ticket, thanks jlogsdon and everyone else who contributed!
from phergie.
Related Issues (20)
- Abusing plugin Remind
- Weather plugin seriously broken HOT 1
- [Streams.php] SSL: Broken pipe
- Storing channelnames inconsistently in plugin UserInfo
- (Plugin FeedTicker) Bot does not send feed items after it joined a channel
- Plugin "Wine" Database Generation 410
- PEAR data path breaks plugins HOT 3
- Pong may be misbehaving
- NickServ plugin crash
- Remind.php - deleting sent messages/reminders
- Url and/or Http plugins returning false 404s? HOT 5
- Autoloader fails to load dependency classes HOT 1
- Small bug in Phergie_Driver_Streams::getEvent() crashes Phergie HOT 1
- [Streams.php] Broken pipe
- URL with — in title will not send correctly to IRC (Freenode) HOT 1
- Add an option for reminders to only respond to targeted messages HOT 1
- Encoding plugin bug
- Receiving a DCC event causes Phergie to die HOT 5
- when running 'phergie', this is what I get... HOT 1
- Youtube plugin has undesired effect of loading other plugins
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phergie.