dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.2.5
Azure has joined #cinch
irsol_ has joined #cinch
irsol has quit [Ping timeout: 264 seconds]
irsol_ has quit [Changing host]
irsol_ has joined #cinch
irsol_ is now known as irsol
_djbkd has joined #cinch
_djbkd has quit [Quit: My people need me...]
sand420 is now known as Saloun
Saloun has quit [Changing host]
Saloun has joined #cinch
postmodern has quit [Quit: Leaving]
proxnal has joined #cinch
<proxnal> this is a good support channel I figured out the problem just before asking
<proxnal> thanks
sarkyniin has joined #cinch
sarkyniin has quit [Remote host closed the connection]
sarkyniin has joined #cinch
CM-Punk has joined #cinch
unknownloner has left #cinch ["1.1.1"]
<dominikh> no problem
sarkyniin has quit [Ping timeout: 265 seconds]
<proxnal> quick question: what is the correct way of removing control characters/color codes from a message
<proxnal> i am using regex with [:ctrl:] for now but this does not feel very smart
<dominikh> there's some function in some module to strip either colors or all non-printable
<proxnal> hmm i can see that because match appears to have that function as an option
<dominikh> Cinch::Formatting.unformat to remove formatting. Follow that up with Cinch::Helpers.sanitize to get rid of other control characters
<dominikh> ah, unformat is also in the Helpers module
<proxnal> cool thanks
<proxnal> is there any way to use cinch on irb/pry?
<dominikh> define that. you can require and use cinch in irb just fine (but set the loggers appropriately so they don't spam stderr). or you can invoke pry in one of your handlers and get a pry shell in the context of the handler
<proxnal> hm okay how do i use cinch on irb?
<dominikh> same way you use any ruby in irb?
<proxnal> so i have to construct a bot to use the helpers etc
<proxnal> maybe i should learn ruby first because i can't decypher the docs well enough