GithubHelp home page GithubHelp logo

irssi-pushover's People

Contributors

davidgoodwin avatar donnex avatar teranex avatar xintron avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

irssi-pushover's Issues

Does not work for Jabber chatrooms (MUC)

First of all thanks for the nice plugin!

I found there is a small issue with the plugin: when using the irssi-plugin-xmpp to connect to a Jabber network, the script works for private messages, but it does not work for mentions in a chatroom (MUC). The reason for this is that $server->{nick} returns the JabberID ([email protected]), while the nick in the room is in most cases different, causing if ($data =~ /$safeNick/i) { to always be false.
I was able to hack a working version by looking at another script. (I really mean 'hack' as I don't know any Perl). This is what I came up with:

sub msg_print_text {
    my ($dest, $text, $stripped) = @_;
    my $server = $dest->{server};
    my $target = $dest->{target};

    return if (!$server || !($dest->{level} & MSGLEVEL_HILIGHT));

    if(check_ignore_channels($target)) {
        return;
    }

    if(check_away($server)) {
        return;
    }

    debug('Got nick highlight');
    $stripped =~ s/^\s+|\s+$//g;
    send_push($target, $stripped);
}

Irssi::signal_add_last('print text', 'msg_print_text');

HTTPS/SSL Issue?

Trying to send a message and I'm getting this:

Irssi: From Irssi::Script::pushover::send_push: Notification not sent: 500 Can't locate object method "new" via package "LWP::Protocol::https::Socket"

Not sure if something is missing but I already have these installed:

  • IO::Socket::SSL
  • LWP::Protocol::https::Socket
  • Crypt::SSLeay
  • LWP::Protocol::https::Socket
  • Crypt::SSLeay

Using perl v5.10.1

I had to change to http from https to get it to work in the mean time. The plugin works brilliantly though ๐Ÿ‘

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.