Fixed invalid TAG error in becommands.subscribe.get_subscribers()
authorW. Trevor King <wking@drexel.edu>
Sat, 26 Sep 2009 16:39:37 +0000 (12:39 -0400)
committerW. Trevor King <wking@drexel.edu>
Sat, 26 Sep 2009 16:39:37 +0000 (12:39 -0400)
Check that the string has the right tag before attempting to parse it
:p.

becommands/subscribe.py

index 2522f0c0456ba2acac4dbc051672942a6f57bdf5..0a23057afe6a326621825425a2bc738691edef4d 100644 (file)
@@ -325,6 +325,8 @@ def get_subscribers(extra_strings, type, server, type_root,
     ['Jane Doe <J@doe.com>', 'John Doe <j@doe.com>']
     """
     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: