2015-03-30 18:24
dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.2.5
00:41
Azure has joined #cinch
01:58
irsol_ has joined #cinch
01:59
irsol has quit [Ping timeout: 264 seconds]
02:01
irsol_ has quit [Changing host]
02:01
irsol_ has joined #cinch
02:01
irsol_ is now known as irsol
06:09
_djbkd has joined #cinch
06:54
_djbkd has quit [Quit: My people need me...]
07:53
sand420 is now known as Saloun
08:03
Saloun has quit [Changing host]
08:03
Saloun has joined #cinch
11:28
postmodern has quit [Quit: Leaving]
14:13
proxnal has joined #cinch
14:20
<
proxnal >
this is a good support channel I figured out the problem just before asking
15:28
sarkyniin has joined #cinch
16:18
sarkyniin has quit [Remote host closed the connection]
18:48
sarkyniin has joined #cinch
20:40
CM-Punk has joined #cinch
21:03
unknownloner has left #cinch ["1.1.1"]
22:28
<
dominikh >
no problem
23:03
sarkyniin has quit [Ping timeout: 265 seconds]
23:03
<
proxnal >
quick question: what is the correct way of removing control characters/color codes from a message
23:06
<
proxnal >
i am using regex with [:ctrl:] for now but this does not feel very smart
23:06
<
dominikh >
there's some function in some module to strip either colors or all non-printable
23:08
<
proxnal >
hmm i can see that because match appears to have that function as an option
23:08
<
dominikh >
Cinch::Formatting.unformat to remove formatting. Follow that up with Cinch::Helpers.sanitize to get rid of other control characters
23:09
<
dominikh >
ah, unformat is also in the Helpers module
23:15
<
proxnal >
cool thanks
23:46
<
proxnal >
is there any way to use cinch on irb/pry?
23:46
<
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
23:49
<
proxnal >
hm okay how do i use cinch on irb?
23:49
<
dominikh >
same way you use any ruby in irb?
23:51
<
proxnal >
so i have to construct a bot to use the helpers etc
23:54
<
proxnal >
maybe i should learn ruby first because i can't decypher the docs well enough