Format: Add command @stripformatting.

This commit is contained in:
Valentin Lorentz 2013-09-21 12:09:37 +00:00
parent 4e2962b39e
commit 83a2895e18
1 changed files with 7 additions and 0 deletions

View File

@ -47,6 +47,13 @@ class Format(callbacks.Plugin):
irc.reply(ircutils.bold(text))
bold = wrap(bold, ['text'])
@wrap(['text'])
def stripformatting(self, irc, msg, args, text):
"""<text>
Strips bold, underline, and colors from <text>."""
irc.reply(ircutils.stripFormatting(text))
@internationalizeDocstring
def reverse(self, irc, msg, args, text):
"""<text>