aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/quarg/database
diff options
context:
space:
mode:
authorWolfgang Müller2021-04-29 22:27:39 +0200
committerWolfgang Müller2021-04-29 22:29:45 +0200
commitefde2954efd636a617702ee1aefb8b1247c9cc5b (patch)
treec257fc5bc82742147d6d5fe20d841b832ae22272 /quarg/database
parent497afce509ec2e1d53dbdea32481c7fc77ddc658 (diff)
downloadquarg-efde2954efd636a617702ee1aefb8b1247c9cc5b.tar.gz
Rename 'prefix' to 'umode'
Whilst still not perfect, 'umode' signals more closely what this option does. We do not plan to add matching on channel modes, so -m should be fine here. The original name for this option came from the column in the backlog table, 'senderprefixes'.
Diffstat (limited to 'quarg/database')
-rw-r--r--quarg/database/filters.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/quarg/database/filters.py b/quarg/database/filters.py
index a78b117..847c243 100644
--- a/quarg/database/filters.py
+++ b/quarg/database/filters.py
@@ -13,8 +13,8 @@ def buffer(name):
def nick(nickname):
return or_(Sender.sender.like(nickname + "!%"), Sender.sender == nickname)
-def prefix(pref):
- return Backlog.senderprefixes.contains(pref)
+def umode(mode):
+ return Backlog.senderprefixes.contains(mode)
def buftype(btype):
return Buffer.buffertype == btype.value