]> git.donarmstrong.com Git - irc.git/blobdiff - .irssi/scripts/auto_bleh.pl
* Interpolate action properly in I want
[irc.git] / .irssi / scripts / auto_bleh.pl
index 605cb685c98722bd68df598075a5e9189e3434c3..e2abc92813cc5eee1e75d2fbb4ee238b2d590b4a 100644 (file)
@@ -209,7 +209,8 @@ sub get_op {
 sub i_want {
      my $action = shift;
 
-     return "I've wanted to $action->{type} $action->{nick} off $action->{channel} on $action->{network} since $action->{inserted}";
+     return "I've wanted to ".join(',', keys %{$action->{type}||{'do something to'=>undef}}}).
+         " $action->{nick} off $action->{channel} on $action->{network} since $action->{inserted}";
 }
 
 sub take_action {