fixed rank trigger for karma

This commit is contained in:
Mike Bloy 2010-10-24 14:57:23 -05:00
parent e557137f82
commit 40ab270324
1 changed files with 3 additions and 3 deletions

View File

@ -35,10 +35,10 @@ class Karma(Module):
self.karmafile = filename + "_karma.dat"
self.trendfile = filename + "_trends.dat"
pattern = "^([a-zA-Z0-9_]+)"
pattern = "([a-zA-Z0-9_]+)"
karmapattern = pattern + '(\+\+|--)'
querypattern = pattern + '\?'
karmapattern = '^' + pattern + '(\+\+|--)'
querypattern = '^!rank\s+' + pattern
self.karmare = re.compile(karmapattern)
self.queryre = re.compile(querypattern)