]> git.donarmstrong.com Git - irc.git/commitdiff
* Interpolate action properly in I want
authorDon Armstrong <don@donarmstrong.com>
Fri, 4 Jan 2008 00:33:31 +0000 (00:33 +0000)
committerDon Armstrong <don@donarmstrong.com>
Fri, 4 Jan 2008 00:33:31 +0000 (00:33 +0000)
.irssi/scripts/auto_bleh.pl

index 605cb685c98722bd68df598075a5e9189e3434c3..e2abc92813cc5eee1e75d2fbb4ee238b2d590b4a 100644 (file)
@@ -209,7 +209,8 @@ sub get_op {
 sub i_want {
      my $action = shift;
 
 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 {
 }
 
 sub take_action {