Skip to content

Commit

Permalink
Parse pull URLs too
Browse files Browse the repository at this point in the history
  • Loading branch information
DarthGandalf committed Feb 24, 2013
1 parent dee4d44 commit 23b75c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion znclinker.pl
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ sub common_public {
if ($what=~/any(?:one|body)\s+(?:around|here)\s*(?:\?|$)/i) {
$heap->{irc}->yield(privmsg=>$chan=>"Pointless question detected! $nick, we are not telepaths, please ask a concrete question and wait for an answer. Be sure that you checked http://wiki.znc.in/FAQ before. You may want to read http://catb.org/~esr/faqs/smart-questions.html Sorry if this is false alarm.");
}
if (my ($issue) = $what=~m@(?:#|https://github.com/znc/znc/issues/)(\d+)@) {
if (my ($issue) = $what=~m@(?:#|https://github.com/znc/znc/(?:issues|pull)/)(\d+)@) {
$kernel->post('ua', "request", "gh_issue", HTTP::Request->new(GET=>"https://api.github.com/repos/znc/znc/issues/$issue"), {chan=>$chan, issue=>$issue});
}
}
Expand Down

0 comments on commit 23b75c8

Please sign in to comment.