Skip to content

Commit fa6f702

Browse files
committed
Fix is_nick_valid parameter in history.seen
1 parent bca50cf commit fa6f702

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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:

0 commit comments

Comments
 (0)