def identify(self): if not self.values: self.chat('Enter a password.') return if self.context_is_channel: self.chat('Not in the channel, you twit.') return whom = Id(self.lastid) if not whom.identify(' '.join(self.values)): self.chat("I don't know you... go away...") return self.chat('Welcome back %s' % whom.name)