postmodern has joined #cinch
davidh_ has joined #cinch
<
davidh_>
n00b question, how do I pass all words after a regex match as separate arguments to execute?
<
davidh_>
i tried match /^word (.*)/i; def execute(m, *args), but that passes all words as one argument
<
ayonix>
match /^word (.+)\s+(.+)/; def execute(m,arg1,arg2) ... for example. \s matches a whitespace
<
ayonix>
and arguments you want to pass to the method need to be in brackets
<
dominikh>
if you have a variable number of words, it's probably a lot easier to just capture the entire string and split it in your handler
<
dominikh>
if you have a fixed number of words, yeah, what ayonix said
<
davidh_>
that will work great, thanks! I should have thought of that. as I said, i am a n00b
v0n has joined #cinch
davidh_ has left #cinch [#cinch]
v0n has quit [Read error: Connection reset by peer]
v0n has joined #cinch
sleetdrop has joined #cinch
postmodern has quit [Ping timeout: 264 seconds]
postmodern has joined #cinch
sleetdrop has quit [Quit: Computer has gone to sleep.]
v0n has quit [Ping timeout: 276 seconds]
sleetdrop has joined #cinch
jhaals has joined #cinch
jhaals has quit [Ping timeout: 264 seconds]
jhaals has joined #cinch
rikai has quit [Read error: Connection reset by peer]
rikai has joined #cinch
jhaals has quit [Ping timeout: 276 seconds]
jhaals has joined #cinch
Spami has joined #cinch
Spami has joined #cinch
Spami has quit [Quit: This computer has gone to sleep]
FiXato has quit [Read error: Connection reset by peer]
FiXato has joined #cinch
sleetdrop has quit [Ping timeout: 256 seconds]
postmodern has quit [Quit: Leaving]
Spami has joined #cinch
Spami has joined #cinch
Spami has quit [Changing host]
colde has joined #cinch
<
colde>
Hi, is there a simple way to specify channel keys, when just giving configure a list of channels?
<
colde>
or do i have to create a channel object for each instead of just passing a string?
Spami has quit [Quit: This computer has gone to sleep]
oleksii has joined #cinch
<
oleksii>
Good day!
<
oleksii>
Having trouble hooking up cinch to inspired irc server with SSL
<
oleksii>
cinch is using openssl, inspired uses gnutls
<
oleksii>
looks like they do not get around very well
<
oleksii>
*inspircd
<
oleksii>
googled a bit, but nothing helpful
<
oleksii>
is there something i can do to hooks them together?
<
oleksii>
it kinda connects at first, everything looks find and then few seconds pass and it disconnects :(
Spami has joined #cinch
Spami has quit [Changing host]
Spami has joined #cinch
<
oleksii>
all right, looks like the easiest was to run the bot on machine with gnutls :)
v0n has joined #cinch
v0n has quit [Client Quit]
v0n has joined #cinch
<
rikai>
oleksii: yeah, looks like quite a few distros have bugs for issues similar to that filed for openssl, so i guess it's an issue with openssl
jhaals has quit [Read error: Operation timed out]
jhaals has joined #cinch
jhaals has quit [Quit: jhaals]
oleksii has quit [Quit: oleksii]
oleksii has joined #cinch
rikai has quit [Remote host closed the connection]
rikai has joined #cinch
rickmasta has quit [Quit: Leaving...]
oleksii has quit [Quit: oleksii]
oleksii has joined #cinch
oleksii has quit [Client Quit]
<
dominikh>
colde: separate channel name and key with a space
Spami has quit [Quit: This computer has gone to sleep]
postmodern has joined #cinch
Spami has joined #cinch
Spami has quit [Quit: This computer has gone to sleep]
Spami has joined #cinch
Spami has quit [Client Quit]
Spami has joined #cinch
Spami has quit [Changing host]
Spami has joined #cinch
Spami has quit [Client Quit]
KevinT has quit [Ping timeout: 240 seconds]
v0n has quit [Ping timeout: 256 seconds]