aboutsummaryrefslogtreecommitdiffstats
path: root/feature-tests/easy_exec.pl
blob: 76cd79fe2675f57125bebb27c802307961fc15b3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
use strict;
use warnings;

use Irssi (@Irssi::EXPORT_OK);
use Irssi::Irc;
use Irssi::TextUI;

use Data::Dumper;

our $VERSION = '0.1';
our %IRSSI = (
              authors     => '',
              contact     => '',
              name        => '',
              description => '',
              license     => 'Public Domain',
             );

Irssi::signal_add_first 'command script exec', \&better_exec;

sub better_exec {
    my ($args, $serv, $witem) = @_;
    eval $args;
    Irssi::signal_stop();
}