Permalink
Browse files

youtube_title: change callback name to "callback"

  • Loading branch information...
olof committed Sep 10, 2011
1 parent 7d6ae74 commit 8feb0d4d830fff4cc3bd7dabbf20ac5af4056f01
Showing with 7 additions and 7 deletions.
  1. +7 −7 irssi/youtube_title.pl
View
@@ -109,7 +109,7 @@ sub get_ids {
}
#does the message contain youtube.com/watch?v=<video id>?
-sub yttitle {
+sub callback {
my($server, $msg, $nick, $address, $target) = @_;
$target=$nick if $target eq undef;
@@ -128,10 +128,10 @@ sub yttitle {
}
}
-sub own_yttitle {
+sub own_callback {
my($server, $msg, $target) = @_;
- yttitle(
+ callback(
$server, $msg, undef, undef, $target
) if Irssi::settings_get_bool('yt_print_own');
}
@@ -174,9 +174,9 @@ sub get_title {
return {error => $response->message};
}
-Irssi::signal_add("message public", \&yttitle);
-Irssi::signal_add("message private", \&yttitle);
+Irssi::signal_add("message public", \&callback);
+Irssi::signal_add("message private", \&callback);
-Irssi::signal_add("message own_public", \&own_yttitle);
-Irssi::signal_add("message own_private", \&own_yttitle);
+Irssi::signal_add("message own_public", \&own_callback);
+Irssi::signal_add("message own_private", \&own_callback);

0 comments on commit 8feb0d4

Please sign in to comment.