More idiomatic.

This commit is contained in:
Jeremy Fincher 2004-12-07 06:44:34 +00:00
parent 6b69d36628
commit 1139f2ab47

View File

@ -508,8 +508,7 @@ class Owner(privmsgs.CapabilityCheckingPrivmsg):
the default quit message (supybot.plugins.Owner.quitMsg) will be used. the default quit message (supybot.plugins.Owner.quitMsg) will be used.
If there is no default quitMsg set, your nick will be used. If there is no default quitMsg set, your nick will be used.
""" """
if not text: text = text or self.registryValue('quitMsg') or msg.nick
text = self.registryValue('quitMsg') or msg.nick
irc.noReply() irc.noReply()
m = ircmsgs.quit(text) m = ircmsgs.quit(text)
world.upkeep() world.upkeep()