Coder Social home page Coder Social logo

notifonotify's People

Contributors

donnex avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

max-mapper

notifonotify's Issues

pipe (|) in my nick causes all messages to be considered mentions

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.

Doesn't work in Ubuntu server 10.04

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.

pipe (|) in my nick causes all messages to be considered mentions

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.

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.