Skip to content

Commit 67647e2

Browse files
authored
Merge pull request CloudBotIRC#155 from linuxdaemon/gonzobot+fix-karma-errors
Fix argument errors in karma.py
2 parents e5519b3 + feaf87c commit 67647e2

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

cloudbot/util/async_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def wrap_future(fut, *, loop=None):
2121
else:
2222
func = asyncio.ensure_future
2323

24-
return func(fut, loop=loop)
24+
return func(fut, loop=loop) # pylint: disable=locally-disabled, deprecated-method
2525

2626

2727
@asyncio.coroutine

plugins/history.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def resethistory(event, conn):
8383

8484

8585
@hook.command()
86-
def seen(text, nick, chan, db, event, is_valid_nick):
86+
def seen(text, nick, chan, db, event, is_nick_valid):
8787
"""<nick> <channel> - tells when a nickname was last in active in one of my channels
8888
:type db: sqlalchemy.orm.Session
8989
:type event: cloudbot.event.Event
@@ -95,7 +95,7 @@ def seen(text, nick, chan, db, event, is_valid_nick):
9595
if text.lower() == nick.lower():
9696
return "Have you looked in a mirror lately?"
9797

98-
if not is_valid_nick(text):
98+
if not is_nick_valid(text):
9999
return "I can't look up that name, its impossible to use!"
100100

101101
if '_' in text:

plugins/karma.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ 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:
@@ -113,7 +113,7 @@ 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:

0 commit comments

Comments
 (0)