~bradwhittington/ibid/translation

« back to all changes in this revision

Viewing changes to ibid/plugins/misc.py

  • Committer: Bradley Whittington
  • Date: 2009-02-26 09:53:00 UTC
  • Revision ID: bradley@mtumwa.local-20090226095300-y27ixpxoj2hyc0ue
Alters addresponse to take responses in the format (template_string, argument, argument, argument), starts adding better support for future translations. Relates to lp:334764

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
        
27
27
        self.pot = [event.sender['nick']]
28
28
        sleep(self.time)
29
 
        event.addresponse(u"Coffee's ready for %s!" % u', '.join(self.pot))
 
29
        event.addresponse(u"Coffee's ready for %s!", u', '.join(self.pot))
30
30
        self.pot = None
31
31
        return event
32
32
    
53
53
 
54
54
    @match(r'^version$')
55
55
    def show_version(self, event):
56
 
        event.addresponse(version and u"I am version %s" % version or u"I don't know what version I am :-(")
 
56
        event.addresponse(version and u"I am version %s" or u"I don't know what version I am :-(", version)
57
57
 
58
58
help['dvorak'] = u"Makes text typed on a QWERTY keyboard as if it was Dvorak work, and vice-versa"
59
59
class Dvorak(Processor):