donnex / notifonotify Goto Github PK
View Code? Open in Web Editor NEWRecieve iPhone push notifications throught http://notifo.com when away in Irssi.
Recieve iPhone push notifications throught http://notifo.com when away in Irssi.
I use a pipe in my nick, it causes every msg to push as a mention.
I fixed it by changing the following line:
if ($server->{usermode_away} == '1' && $data =~ /$server->{nick}/i) {
to this:
if ($server->{usermode_away} == '1' && $data =~ $server->{nick}) {
I'm pretty sure that's a bad fix, but it works for my own case.
When I tried to load the script in Ubuntu server 10.04 I got the following error:
Can't locate HTTP/Request/Common.pm in @INC (@INC contains: /home/aziz/.irssi/scripts /usr/share/irssi/scripts /usr/lib/perl/5.10 /etc/perl
/usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at
/home/aziz/.irssi/scripts/notifonotify.pl line 14.
I use a pipe in my nick, it causes every msg to push as a mention.
Found the problem/solution here:
http://www.go4expert.com/forums/showthread.php?t=6250
my hacky correction:
sub msg_pub
{
my ($server, $data, $nick, $mask, $target) = @_;
my $safeNick = quotemeta($server->{nick});
if ($server->{usermode_away} == '1' && $data =~ /$safeNick/i) {
debug('Got pub msg with my name.');
send_notifo('Mention', $target.' '.$nick.': '.strip_formating($data));
}
}
NOTE: This is a duplicate of an accidentally closed issue, sorry about that.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.