Hurf durf can't have subroutines with the same name

This commit is contained in:
melonhead 2010-03-01 01:12:10 +00:00
parent 51e5744d26
commit 663dfe884b
1 changed files with 2 additions and 1 deletions

View File

@ -55,7 +55,8 @@ def get_video_description(vid):
@hook.command(hook=r'(.*)', prefix=False)
def youtube(inp):
def youtube_url(inp):
print inp
m = youtube_re.search(inp)
if m:
return get_video_description(m.group(1))