diff options
-rw-r--r-- | quarg/database/filters.py | 4 | ||||
-rw-r--r-- | quarg/main.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/quarg/database/filters.py b/quarg/database/filters.py index 847c243..a78b117 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 umode(mode): - return Backlog.senderprefixes.contains(mode) +def prefix(pref): + return Backlog.senderprefixes.contains(pref) def buftype(btype): return Buffer.buffertype == btype.value diff --git a/quarg/main.py b/quarg/main.py index f21327d..29138e3 100644 --- a/quarg/main.py +++ b/quarg/main.py @@ -24,7 +24,7 @@ matchers = cli.add_argument_group('matching message context') matchers.add_argument('-b', action='append', dest='buffer', help='match this buffer') matchers.add_argument('-B', action=actions.ParseBufferType, dest='buftype', help='match buffers of this type') matchers.add_argument('-n', action='append', dest='nick', help='match this nickname') -matchers.add_argument('-m', action='append', dest='umode', help='match nicknames with this mode') +matchers.add_argument('-m', action='append', dest='prefix', help='match nicknames with this channel membership prefix') matchers.add_argument('-N', action='append', dest='network', help='match this network') matchers.add_argument('-Q', action='append', dest='user', help='match this quassel user') matchers.add_argument('-t', action=actions.ParseMessageType, dest='msgtype', help='match this message type') @@ -71,7 +71,7 @@ def collect_predicates(args): 'msgflag': filters.msgflag, 'msgtype': filters.msgtype, 'buftype': filters.buftype, - 'umode': filters.umode, + 'prefix': filters.prefix, 'joined': filters.joined, } |