Skip to content

Commit

Permalink
Format: Add command @stripformatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
progval committed Sep 21, 2013
1 parent 4e2962b commit 83a2895
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions plugins/Format/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ def bold(self, irc, msg, args, text):
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>
Expand Down

0 comments on commit 83a2895

Please sign in to comment.