Skip to content

Commit 0cbbad1

Browse files
committed
Fix function spacing in grab.py
1 parent 9fc2ceb commit 0cbbad1

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

plugins/grab.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def load_cache(db):
3232
chan = row["chan"]
3333
grab_cache.setdefault(chan, {}).setdefault(name, []).append(quote)
3434

35+
3536
def two_lines(bigstring, chan):
3637
"""Receives a string with new lines. Groups the string into a list of strings with up to 3 new lines per string element. Returns first string element then stores the remaining list in search_pages."""
3738
global search_pages
@@ -71,6 +72,7 @@ def moregrab(text, chan):
7172
else:
7273
return "All pages have been shown you can specify a page number or do a new search."
7374

75+
7476
def check_grabs(name, quote, chan):
7577
try:
7678
if quote in grab_cache[chan][name]:
@@ -80,6 +82,7 @@ def check_grabs(name, quote, chan):
8082
except:
8183
return False
8284

85+
8386
def grab_add(nick, time, msg, chan, db, conn):
8487
# Adds a quote to the grab table
8588
db.execute(table.insert().values(name=nick, time=time, quote=msg, chan=chan))
@@ -109,6 +112,7 @@ def grab(text, nick, chan, db, conn):
109112
return "the operation failed"
110113
return "I couldn't find anything from {} in recent history.".format(text)
111114

115+
112116
def format_grab(name, quote):
113117
# add nonbreaking space to nicks to avoid highlighting people with printed grabs
114118
name = "{}{}{}".format(name[0], u"\u200B", name[1:])
@@ -120,6 +124,7 @@ def format_grab(name, quote):
120124
out = "<{}> {}".format(name, quote)
121125
return out
122126

127+
123128
@hook.command("lastgrab", "lgrab")
124129
def lastgrab(text, chan, message):
125130
"""prints the last grabbed quote from <nick>."""

0 commit comments

Comments
 (0)