]> jfr.im git - erebus.git/blobdiff - modules/youtube.py
remove no such command error
[erebus.git] / modules / youtube.py
index 9e701707d8b0579ba56e74550e5a04bc0a0790c1..538c91eea7c9edd38a59d920777cc4d491e61cad 100644 (file)
@@ -25,7 +25,7 @@ import HTMLParser
 from BeautifulSoup import BeautifulSoup
 
 checkfor = "youtube"
-yturl_regex = re.compile(r'https?://(?:www\.)?youtube\.com/watch\?[a-zA-Z0-9=&]+')
+yturl_regex = re.compile(r'https?://(?:www\.)?youtube\.com/watch\?[a-zA-Z0-9=&_\-]+')
 
 @lib.hooknum("PRIVMSG")
 def privmsg_hook(bot, line):