LearnProgramming/hamper — pull request #8 by Lunanne (2013-05-18 11:28:12+00:00)
Title: Fix #5 leave command bug

Hi

I found a link to this repository on /r/learnprogramming and looking at the issues I figured I would give this one(#5) a go.

There were several issues with the existing regex:
- "leave" without channel needed a trailing space
- the given channel name could only be one character
I've changed the regex to solve these issues, but the new regex does leave a trailing space at the start which needs to be removed. There might be a neater solution.

I've also changed the existing comment and changed it so the bot says "goodbye" in the channel it leaves, not in the channel where the command is given.

If there are any problems with this commit or things I could have done better I would like to hear them.

Thanks