Spami has quit [Quit: This computer has gone to sleep]
Spami has joined #cinch
Spami has quit [Read error: Connection reset by peer]
Spami has joined #cinch
DeepBlue has joined #cinch
robonerd has quit [Ping timeout: 240 seconds]
robonerd- has joined #cinch
Azure has quit [Quit: My MBP went to sleep.]
Spami has quit [Quit: This computer has gone to sleep]
xeviox|afk is now known as xeviox
rikai has joined #cinch
kludge` has quit [Ping timeout: 245 seconds]
kludge` has joined #cinch
postmodern has quit [Quit: Leaving]
Khazix has quit [Quit: process.exit(0)]
cyrusdavid has joined #cinch
cyrusdavid has quit [Client Quit]
cyrusdavid has joined #cinch
kludge` has quit [Disconnected by services]
CM-Punk has quit [Ping timeout: 240 seconds]
Dwarf has quit [Ping timeout: 240 seconds]
kludge` has joined #cinch
CM-Punk has joined #cinch
Dwarf has joined #cinch
DeepBlue has quit [Read error: Connection reset by peer]
DeepBlue has joined #cinch
DeepBlue has left #cinch [#cinch]
kith has quit [Quit: kith]
kith has joined #cinch
UberDragon has joined #cinch
v0n has joined #cinch
Azure has joined #cinch
somasonic has joined #cinch
<somasonic>
is there a way to get the "original" mode string out of mode_change event?
<somasonic>
i.e. +oo-q somasonic bot user!*@* instead of add o somasonic add o bot etc
Spami has joined #cinch
xeviox is now known as xeviox|afk
<dominikh>
somasonic: I'd have to check; but first the question why you need the original string
<somasonic>
dominikh, i'm coding a relay bot
<somasonic>
that relays between channels on different networks
<dominikh>
ah
<somasonic>
i mean, if it's not in there I'm sure it wouldn't be too hard of a thing to hack in myself
<dominikh>
somasonic: hm, doesn't :mode_change yield the array while :mode yields the raw message?
<somasonic>
possibly
<somasonic>
let me check
<somasonic>
thanks
Spami has quit [Quit: This computer has gone to sleep]
Spami has joined #cinch
DeepBlue has joined #cinch
DeepBlue has quit [Quit: Konversation terminated!]
<dominikh>
so, did that work?
<CM-Punk>
dominikh or anyone, I'm still trying to figure out how to have the bot check if it's in a channel before trying to execute an action in it.
<ayonix>
bot.channels.include? Channel("test")
<ayonix>
Or something like that?
<CM-Punk>
Like...
v0n has quit [Ping timeout: 260 seconds]
<CM-Punk>
ayonix, I need it to check if it's in the channel it's being asked to take action in, I need it to be a check in scripts like this http://pastebin.com/A8iQGaLu
<ayonix>
So?
v0n has joined #cinch
<ayonix>
What's wrong with my suggestion?
<CM-Punk>
In ("test") I would put ("channel")?
<CM-Punk>
As in the argument?
<ayonix>
It depends
<ayonix>
Without quotes if channel is a string
<ayonix>
But what's wrong with your solution that uses opped?
cyrusdavid has quit [Quit: process.exit(0)]
cyrusdavid has joined #cinch
<CM-Punk>
Because ayonix I want the bot to be able to give the proper message based on the issue.
<CM-Punk>
"I am not opped in #{channel}!"
<CM-Punk>
"I am not in #{channel}!"
<ayonix>
I see
<ayonix>
Just check if bot.channels includes the asked channel then
<CM-Punk>
Okay
<CM-Punk>
Got it
postmodern has joined #cinch
Azure_ has joined #cinch
Azure has quit [Disconnected by services]
Azure_ is now known as Azure
DeepBlue has joined #cinch
rikai has quit [Ping timeout: 246 seconds]
<CM-Punk>
How do I ignore case on a matcher?
<dominikh>
use a regex and the i modifier
<dominikh>
so match /FoO/i
<somasonic>
dominikh, it did work, thanks
<dominikh>
great
<CM-Punk>
And if I did that dominikh it would still make
<CM-Punk>
!foo
<CM-Punk>
?
<CM-Punk>
s/make/match
<dominikh>
it would still have the prefix, yes
<dominikh>
and match any casing of foo
<CM-Punk>
Awesome, thank you dominikh
<dominikh>
possibly want /foo$/i so that it doesn't match !foobar
DeepBlue has quit [Quit: Konversation terminated!]