Ignore no user error when trying to set last location

This commit is contained in:
Daniel Berlin 2004-05-02 16:21:35 +00:00
parent 145024af2b
commit 583f08f3da

View File

@ -97,7 +97,8 @@ class Weather(callbacks.Privmsg):
args = [s]
else:
location = privmsgs.getArgs(args)
self.setUserValue(msg.prefix, 'lastLocation', location)
self.setUserValue(msg.prefix, 'lastLocation',
location, ignoreNoUser=True)
realCommandName = self.registryValue('command', channel)
realCommand = getattr(self, realCommandName)
realCommand(irc, msg, args)