Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Advertising

Paste Description for irssi-proxy script

irssi script to mark you away when you disconnect from irssi-proxy. **requires irssi patch**

irssi-proxy script
Tuesday, April 10th, 2007 at 12:25:55am MDT 

  1. use strict;
  2. use vars qw($VERSION %IRSSI);
  3.  
  4. use Irssi;
  5. use Data::Dumper;
  6. $VERSION = '1.00';
  7. %IRSSI = (
  8.     authors     => 'Alex Schumann',
  9.     contact     => 'rubin@afternet.org',
  10.     name        => 'away-on-disconnect',
  11.     description => 'If you use irssi-proxy, ' .
  12.                    'this script will set you' .
  13.                    'away on IRC when you disconnect.',
  14.     license     => 'GPL',
  15. );
  16.  
  17.  
  18. sub event_disconnected {
  19.    my ($data, $host, $server) = @_;
  20.    Irssi::print Dumper($server);
  21.    $server->command("Away Disconnected From IRC");
  22. }
  23.  
  24.  
  25. Irssi::signal_add("proxy client disconnected", "event_disconnected");
  26. Irssi::print("Loaded!");

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

fantasy-obligation
fantasy-obligation