mirror of
https://github.com/jlu5/SupyPlugins.git
synced 2025-05-02 16:31:11 -05:00
Revert "Quick fix to stop spammers."
This reverts commit b0969874a3873462c77115f34f469e4daa4d0a08. Conflicts: plugin.py
This commit is contained in:
parent
f5178e5aad
commit
b06e59341e
@ -384,10 +384,6 @@ class Weather(callbacks.Plugin):
|
||||
if len(self.APIKEY) < 1 or not self.APIKEY or self.APIKEY == "Not set":
|
||||
irc.error("Need a Wunderground API key. Set config plugins.Weather.apiKey and reload Weather.", Raise=True)
|
||||
|
||||
# this is to stop spam.
|
||||
if optinput and len(optinput) > 50:
|
||||
irc.error("Locations should not be this long. Try again.", Raise=True)
|
||||
|
||||
# urlargs will be used to build the url to query the API.
|
||||
# besides lang, these are unmutable values that should not be changed.
|
||||
urlArgs = {'features':['conditions', 'forecast'],
|
||||
|
Loading…
x
Reference in New Issue
Block a user