Skip to content

Commit bca50cf

Browse files
committed
Fix argument errors in karma.py
1 parent f0fa489 commit bca50cf

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

plugins/karma.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ def addpoint(text, nick, chan, db):
5454

5555

5656
@hook.regex(karmaplus_re)
57-
def re_addpt(match, nick, chan, db, conn, notice):
57+
def re_addpt(match, nick, chan, db, notice):
5858
"""no useful help txt"""
5959
thing = match.group().split('++')[0]
6060
if thing:
61-
addpoint(thing, nick, chan, db, conn)
61+
addpoint(thing, nick, chan, db)
6262
# return out
6363
else:
64-
notice(pluspts(nick, chan, db, conn))
64+
notice(pluspts(nick, chan, db))
6565

6666

6767
@hook.command("mm", "rmpoint")
@@ -113,14 +113,14 @@ def minuspts(nick, chan, db):
113113

114114

115115
@hook.regex(karmaminus_re)
116-
def re_rmpt(match, nick, chan, db, conn, notice):
116+
def re_rmpt(match, nick, chan, db, notice):
117117
"""no useful help txt"""
118118
thing = match.group().split('--')[0]
119119
if thing:
120-
rmpoint(thing, nick, chan, db, conn)
120+
rmpoint(thing, nick, chan, db)
121121
# return out
122122
else:
123-
notice(minuspts(nick, chan, db, conn))
123+
notice(minuspts(nick, chan, db))
124124

125125

126126
@hook.command("points", autohelp=False)

0 commit comments

Comments
 (0)