mirror of
https://github.com/progval/Limnoria.git
synced 2025-04-26 21:11:12 -05:00
Move stripformatting from Format to Filter, for consistency
This commit is contained in:
parent
d593f84a66
commit
52a5cefd50
@ -126,6 +126,11 @@ squish <text>
|
|||||||
stripcolor <text>
|
stripcolor <text>
|
||||||
Returns <text> stripped of all color codes.
|
Returns <text> stripped of all color codes.
|
||||||
|
|
||||||
|
.. _command-filter-stripformatting:
|
||||||
|
|
||||||
|
stripformatting <text>
|
||||||
|
Strips bold, underline, and colors from <text>.
|
||||||
|
|
||||||
.. _command-filter-supa1337:
|
.. _command-filter-supa1337:
|
||||||
|
|
||||||
supa1337 <text>
|
supa1337 <text>
|
||||||
|
@ -84,7 +84,7 @@ class Filter(callbacks.Plugin):
|
|||||||
'scramble', 'morse', 'reverse', 'colorize', 'squish',
|
'scramble', 'morse', 'reverse', 'colorize', 'squish',
|
||||||
'supa1337', 'stripcolor', 'aol', 'rainbow', 'spellit',
|
'supa1337', 'stripcolor', 'aol', 'rainbow', 'spellit',
|
||||||
'hebrew', 'undup', 'uwu', 'gnu', 'shrink', 'uniud', 'capwords',
|
'hebrew', 'undup', 'uwu', 'gnu', 'shrink', 'uniud', 'capwords',
|
||||||
'caps', 'vowelrot']
|
'caps', 'vowelrot', 'stripformatting']
|
||||||
@internationalizeDocstring
|
@internationalizeDocstring
|
||||||
def outfilter(self, irc, msg, args, channel, command):
|
def outfilter(self, irc, msg, args, channel, command):
|
||||||
"""[<channel>] [<command>]
|
"""[<channel>] [<command>]
|
||||||
@ -421,6 +421,13 @@ class Filter(callbacks.Plugin):
|
|||||||
irc.reply(''.join(L) + '\x03')
|
irc.reply(''.join(L) + '\x03')
|
||||||
rainbow = wrap(rainbow, ['text'])
|
rainbow = wrap(rainbow, ['text'])
|
||||||
|
|
||||||
|
@wrap(['text'])
|
||||||
|
def stripformatting(self, irc, msg, args, text):
|
||||||
|
"""<text>
|
||||||
|
|
||||||
|
Strips bold, underline, and colors from <text>."""
|
||||||
|
irc.reply(ircutils.stripFormatting(text))
|
||||||
|
|
||||||
@internationalizeDocstring
|
@internationalizeDocstring
|
||||||
def stripcolor(self, irc, msg, args, text):
|
def stripcolor(self, irc, msg, args, text):
|
||||||
"""<text>
|
"""<text>
|
||||||
|
@ -79,11 +79,6 @@ repr <text>
|
|||||||
reverse <text>
|
reverse <text>
|
||||||
Returns <text> in reverse-video.
|
Returns <text> in reverse-video.
|
||||||
|
|
||||||
.. _command-format-stripformatting:
|
|
||||||
|
|
||||||
stripformatting <text>
|
|
||||||
Strips bold, underline, and colors from <text>.
|
|
||||||
|
|
||||||
.. _command-format-title:
|
.. _command-format-title:
|
||||||
|
|
||||||
title <text>
|
title <text>
|
||||||
|
@ -50,13 +50,6 @@ class Format(callbacks.Plugin):
|
|||||||
irc.reply(ircutils.bold(text))
|
irc.reply(ircutils.bold(text))
|
||||||
bold = wrap(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
|
@internationalizeDocstring
|
||||||
def reverse(self, irc, msg, args, text):
|
def reverse(self, irc, msg, args, text):
|
||||||
"""<text>
|
"""<text>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user