dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.0.9
space_ has joined #cinch
space has quit [Ping timeout: 264 seconds]
leftylink has joined #cinch
leftylink has quit [Ping timeout: 240 seconds]
leftylink has joined #cinch
leftylink has quit [Remote host closed the connection]
Spami has joined #cinch
Spami has joined #cinch
Spami has quit [Quit: This computer has gone to sleep]
v0n has joined #cinch
v0n has quit [Ping timeout: 240 seconds]
Spami has joined #cinch
Spami has joined #cinch
Spami has quit [Quit: This computer has gone to sleep]
kludge` has quit [Ping timeout: 264 seconds]
kludge` has joined #cinch
kludge` has quit [Changing host]
kludge` has joined #cinch
postmodern has quit [Quit: Leaving]
space_ has quit [Ping timeout: 240 seconds]
leftylink has joined #cinch
space has joined #cinch
space has quit [Ping timeout: 272 seconds]
v0n has joined #cinch
v0n has quit [Ping timeout: 265 seconds]
ILoveYou has joined #cinch
<ILoveYou> does cinch support op levels above op? ex admin/owner? trying to implement some logic where if user is a level above the bot it will return a boolean
<dominikh> sure. it gives you a plain list of the user's modes
<dominikh> (there are no helper methods for > op in the Channel class, you'll need to work with the list of modes manually)
<ILoveYou> i think i found what you're referring to: the hash of users that returns the array modes, right?
<dominikh> yea
<ILoveYou> thanks. exactly what i was looking for
v0n has joined #cinch
leftylink has quit [Ping timeout: 272 seconds]
leftylink has joined #cinch
Spami has joined #cinch
Spami has joined #cinch
Spami has quit [Quit: This computer has gone to sleep]
Spami has joined #cinch
Spami has quit [Quit: This computer has gone to sleep]
<ILoveYou> missing something here: trying to access the list of user modes. i believe it's m.channel.users but if i debug that output using to_yaml i just get a list of pretty much every variable cinch is using
<dominikh> m.channel.users is a Hash of User -> Array.
<dominikh> and yes, User has a reference to Bot, which would explain why to_yaml serializes pretty much the entire bot's state
<dominikh> m.channel.users[user_i_care_about] will give you an array of strings, each string being one of the user's modes.
<ILoveYou> i've been attempting to do so using m.channel.users[m.user.nick], m.channel.users['ILUBot']. it seems to just be adding a "ILUBot" key to the hash with a nil value. no idea why
<dominikh> m.user, not m.user.nick
<dominikh> it's a hash of User->string, not string->string
<ILoveYou> welp. that was incredibly easy
<dominikh> (as for it adding a new key to it, that's because Ruby is annoying with regard to default values for hashes :))
<ILoveYou> hah - that's kind of why i'm doing this. i haven't worked much with hashes or arrays. i'm trying to bash my head against the rocks until i understand them better - thanks
scottstamp has joined #cinch