Created
November 26, 2008 16:52
-
-
Save masak/29445 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ svn diff -r7551:7552 | |
[...] | |
sub oh_thank_you { | |
- my ($sender, $attribute, $channel, $irc) = @_; | |
+ my ($dialogue) = @_; | |
my @replies = (q[oh, thank you, thank you!], | |
q[you want me to leave?], | |
q[well, yeah. you're excused too.]); # ' | |
- my $reply = pick(@replies); | |
- | |
- reply_to( $sender, $reply, $channel, $irc ); | |
+ $dialogue->reply()->( pick(@replies) ); | |
} | |
[...] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment