dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.0.9
<
dominikh>
you can have any number of matches in a plugin and each one will be processed independently
<
scottstamp>
That's true as well.
<
taro_>
I was thinking for more of the same thing matching
<
scottstamp>
This is what I use, it's only matching "remind" but I could match something else as well.
<
scottstamp>
on :message, /\.remind ([\w]+) ([\d]+) (s|second|seconds|m|minute|minutes|h|hour|hours) (.*)/ do |m, target, interval, type, message|
<
taro_>
I may be explaining myself wrong
<
taro_>
match /foo ([a-z]+)/, use_prefix: false, method: foomethod
<
taro_>
if a user said
<
taro_>
foo bar foo baz foo this foo that
<
taro_>
it would fire off one for bar, one for baz, one for this, one for that
<
scottstamp>
I forget how. I don't think you can do it natively, you'd have to just match all text and run it through a function
<
taro_>
I was afraid of that
<
taro_>
alright thanks :)
<
scottstamp>
np taro_. FYI I suck at Regex
<
scottstamp>
might be wrong
<
taro_>
Cinch is awesome btw
<
scottstamp>
maybe (+[(foo)]) ?
<
scottstamp>
Yeah I agree, it's very cool
<
dominikh>
that.. really wouldn't do anything sensible
<
taro_>
that wouldn't work
<
scottstamp>
It'd match foo multiple times.
<
dominikh>
the use of [] is wrong to begin with
<
taro_>
[] would be a match group
<
taro_>
regex would probably barf
<
dominikh>
[] is a character group
<
taro_>
thats what I meant sorry
<
taro_>
() is match group
<
scottstamp>
yeah... I'm bad at regex and I'm stoned. :P
literal has joined #cinch
davidboy has quit [Ping timeout: 240 seconds]
Spami has quit [Quit: This computer has gone to sleep]
postmodern has joined #cinch
scottstamp is now known as zolpidem
zolpidem is now known as diazepam
diazepam is now known as zolpidem
zolpidem is now known as scottstamp
sacc91 has quit [Read error: Connection reset by peer]
sacc91_ has joined #cinch
davidboy has joined #cinch
FiXato has quit [Max SendQ exceeded]
FiXato has joined #cinch
jonahR has joined #cinch
Spami has joined #cinch
Spami has joined #cinch
rickmasta has quit [Quit: Leaving...]
scottstamp is now known as zz_scottstamp
space has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
postmodern has joined #cinch
jonahR has quit [Quit: jonahR]
zz_scottstamp is now known as scottstamp
davidboy has quit [Ping timeout: 240 seconds]
scottstamp is now known as zolpidem
zolpidem is now known as zz_zolpidem
jonahR has joined #cinch
kaiks has quit [Ping timeout: 260 seconds]
kx has joined #cinch
davidboy has joined #cinch
rikai_ has quit [Read error: Connection reset by peer]
rikai has joined #cinch
jonahR has quit [Quit: jonahR]
space has joined #cinch
kludge` has quit [Ping timeout: 240 seconds]
kludge` has joined #cinch
FiXato has quit [Max SendQ exceeded]
FiXato has joined #cinch
FiXato has quit [Max SendQ exceeded]
FiXato has joined #cinch
postmodern has quit [Quit: Leaving]
space_ has joined #cinch
space has quit [Ping timeout: 246 seconds]
space_ is now known as Space
teddell has quit [Quit: teddell]
UberDragon has joined #cinch
UberDragon_ has joined #cinch
UberDragon has quit [Ping timeout: 260 seconds]
UberDragon_ is now known as UberDragon
davidboy has quit [Ping timeout: 252 seconds]
davidboy has joined #cinch
Spami has quit [Quit: This computer has gone to sleep]
Spami has joined #cinch
Spami has joined #cinch
rikai has quit [Read error: Connection reset by peer]
rikai has joined #cinch
Space has quit [Remote host closed the connection]
postmodern has joined #cinch
Spami has quit [Quit: This computer has gone to sleep]
jonahR has joined #cinch
Khazix has quit [Quit: process.exit(0)]
Khazix has joined #cinch
_whitelogger____ has joined #cinch
Dwarf has quit [*.net *.split]
_whitelogger___ has quit [*.net *.split]
DonovanYoung has quit [*.net *.split]
ex0a has quit [*.net *.split]
exoa has joined #cinch
DonovanYoung has joined #cinch
Spami has joined #cinch
jonahR has left #cinch [#cinch]
rickmasta has joined #cinch
exoa is now known as ex0a
v1n has joined #cinch
v0n has quit [Ping timeout: 245 seconds]
v1n has quit [Client Quit]
v0n has joined #cinch
v0n has quit [Quit: WeeChat 0.4.2-dev]
v0n has joined #cinch
kx has quit [Ping timeout: 240 seconds]
Space has joined #cinch
zz_zolpidem is now known as scottstamp