Method: Cinch::Helpers#Unformat

Defined in:
lib/cinch/helpers.rb

#Unformat(string) ⇒ String

Deletes all mIRC formatting codes from the string. This strips formatting for bold, underline and so on, as well as color codes. This does include removing the numeric arguments.

Parameters:

  • string (String)

    The string to filter

Returns:

  • (String)

    The filtered string

Since:

  • 2.2.0



225
226
227
# File 'lib/cinch/helpers.rb', line 225

def Unformat(string)
  Formatting.unformat(string)
end