From 648ae85b51dfd43ac618298b44c32bef75a4c261 Mon Sep 17 00:00:00 2001 From: James Vega Date: Sat, 17 Dec 2005 01:35:31 +0000 Subject: [PATCH] URL: Update URL.last so that getopts args are only .lower()'d if they're a string. --- plugins/URL/plugin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/URL/plugin.py b/plugins/URL/plugin.py index 926cdde92..65d7865b0 100644 --- a/plugins/URL/plugin.py +++ b/plugins/URL/plugin.py @@ -105,7 +105,8 @@ class URL(callbacks.Plugin): f = None nolimit = False for (option, arg) in optlist: - arg = arg.lower() + if isinstance(arg, basestring): + arg = arg.lower() if option == 'nolimit': nolimit = True elif option == 'from':