Skip to content

Commit 26e9175

Browse files
committed
Quick formatting change in get_latest_line() func
1 parent 93a8895 commit 26e9175

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

plugins/grab.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,9 @@ def grab_add(nick, time, msg, chan, db, conn):
101101

102102

103103
def get_latest_line(conn, chan, nick):
104-
for item in reversed(conn.history[chan]):
105-
name, timestamp, msg = item
104+
for name, timestamp, msg in reversed(conn.history[chan]):
106105
if nick.casefold() == name.casefold():
107-
return item
106+
return name, timestamp, msg
108107

109108
return None, None, None
110109

0 commit comments

Comments
 (0)