fixed rank trigger for karma
This commit is contained in:
parent
e557137f82
commit
40ab270324
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue