Skip to content
Browse files

Make auth info actually optional.

TODO: there should be a test to issue this command to the bot and verify via the
mocked storage that it worked appropriately; that would have caught this fuckup.
  • Loading branch information...
1 parent 5804704 commit 1b58defe69168d188b3d482b458b9acc8b4da7b5 @bigpresh committed Oct 7, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Bot/BasicBot/Pluggable/Module/GitHub.pm
View
4 lib/Bot/BasicBot/Pluggable/Module/GitHub.pm
@@ -110,8 +110,8 @@ sub said {
if ($mess->{body} =~ m{
^!setgithubproject \s+
(?<channel> \#\S+ ) \s+
- (?<project> \S+ ) \s+
- (?<auth> \S+ )?
+ (?<project> \S+ )
+ ( \s+ (?<auth> \S+ ) )?
}xi) {
my $project_for_channel =
$self->store->get('GitHub','project_for_channel') || {};

0 comments on commit 1b58def

Please sign in to comment.
Something went wrong with that request. Please try again.