<ayonix>
after that the bot wouldn't reply to pings of the network
space__ has joined #cinch
Spaceghost has quit [Ping timeout: 256 seconds]
postmodern has quit [Quit: Leaving]
<ayonix>
it was reproducible within cinch, doing the same in irb works without problems. is it just my regex that is wrong? but why does it break cinch then? :S
<ayonix>
oh..my regex doesn't terminate in that case..nevermind
sleetdrop has quit [Ping timeout: 246 seconds]
jonahR has joined #cinch
jmnoz has joined #cinch
space__ has quit [Remote host closed the connection]
v0n has joined #cinch
dominikh has quit [Remote host closed the connection]
<ayonix>
yup, switching from word boundaries to \s is better..
<dominikh>
fyi, [^\s] is just \S
<ayonix>
hehe, thanks
<ayonix>
although..a prefix like /^[^!]/ is possible as well, isn't it?
<dominikh>
why wouldn't it
<ayonix>
hmm right, my problem with that was that i was trying to match any words before the url.. i'll just use that + URI.extract.. :)
<dominikh>
yeah you should
<dominikh>
that's enough debugging catastrophic regexps and installing shareware in VMs for me, I'll be gone
<ayonix>
wow..one url still hasn't finished yet.
<ayonix>
thanks again, see you
Spami has quit [Quit: This computer has gone to sleep]
<ayonix>
hmm i remember why i didn't go with the prefix /^[^!]/ approach. if anyone just sent an url then it would only pass 'ttp://..' to the method. prepending an h is still less pain than getting the right regex though..
<dominikh>
uhm, I think you're doing it wrong.
<ayonix>
i don't want to exclude that option :P
<ayonix>
basically i want to extract urls from messages that dont start with an exclamation mark
<dominikh>
so? check that the first character isn't an !, and when it isn't, run URL.extract on the message
<dominikh>
there's no need for regexps at all
<ayonix>
-.- true
<ayonix>
thanks
<ayonix>
totally forgot about m.message
rickmasta has joined #cinch
<nickrw>
is it possible to specify a channel with a key with cinchize's yaml?
<dominikh>
probably the same way you do in cinch. channel name and key in one string, separated with a space.
<nickrw>
ah, wasn't aware of that, thanks
<dominikh>
Netfeed would know more.
<nickrw>
yes, that works - thanks :)
<Netfeed>
yeah, i don't do anything fancy with the channels
v0n has quit [Ping timeout: 246 seconds]
v0n has joined #cinch
rickmasta has quit [Quit: Leaving...]
jmnoz has quit [Ping timeout: 256 seconds]
rickmasta has joined #cinch
txdv_ has quit [Ping timeout: 264 seconds]
txdv has joined #cinch
Spaceghost has joined #cinch
Spaceghost is now known as Guest12786
postmodern has joined #cinch
waxjar_ has quit [Ping timeout: 260 seconds]
Guest12786 is now known as Spaceghost
Spaceghost has quit [Changing host]
Spaceghost has joined #cinch
rickmasta has quit [Quit: Leaving...]
v0n has quit [Ping timeout: 256 seconds]
Spaceghost has quit [Read error: Connection reset by peer]
Spami has joined #cinch
Spami has quit [Quit: This computer has gone to sleep]
Spami has joined #cinch
Spami has joined #cinch
Spami has quit [Quit: This computer has gone to sleep]