From 7ec39c25f302c4b1056885c26508e20200494df6 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sat, 26 Sep 2009 12:39:37 -0400 Subject: [PATCH] Fixed invalid TAG error in becommands.subscribe.get_subscribers() Check that the string has the right tag before attempting to parse it :p. --- becommands/subscribe.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/becommands/subscribe.py b/becommands/subscribe.py index 2522f0c..0a23057 100644 --- a/becommands/subscribe.py +++ b/becommands/subscribe.py @@ -325,6 +325,8 @@ def get_subscribers(extra_strings, type, server, type_root, ['Jane Doe ', 'John Doe '] """ for string in extra_strings: + if not string.startswith(TAG): + continue subscriber,types,servers = _parse_string(string, type_root) type_match = False if type in types: -- 2.26.2