dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.2.5
djbkd has quit [Remote host closed the connection]
iamayam has quit [*.net *.split]
iamayam has joined #cinch
eebs has joined #cinch
eebs has quit [Quit: Leaving.]
thomas has joined #cinch
proxnal has quit [Ping timeout: 244 seconds]
proxnal has joined #cinch
postmodern has quit [Quit: Leaving]
sarkyniin has joined #cinch
apt-get_ has joined #cinch
sarkyniin has quit [Ping timeout: 265 seconds]
eebs has joined #cinch
al2o3-cr has joined #cinch
<al2o3-cr> will this be sufficient: ["name1", "name2"].include?(m.user.nick) && m.user.host == "myaffiliated/hostname" ?
<al2o3-cr> to only allow accounts belonging to me execute a specific
eebs1 has joined #cinch
<dominikh> a) if you only accept commands in channels or from people who are in channels the bot is also in, then yes. otherwise you need to User#refresh before each check to avoid certain attacks b) you might as well just check for User#authname instead of nick + host
<al2o3-cr> dominikh: ok, this implies to a) so should be good to go?
<dominikh> yes.
<al2o3-cr> ok, thanks dominikh :)
<al2o3-cr> ¢host
<al2o3-cr> oops :(
<al2o3-cr> dominikh: When you mentioned User#authname, did you mean something like m.user.refresh; m.user.authed? && ["name1", "name2"].include?(m.user.authname) ?
<dominikh> well, no need for m.user.authed?, authname will be nil if he's not authed, and nil is probably not in that array of yours
<dominikh> but yes
<al2o3-cr> dominikh: ah, of course authed? will be nil and yeah thanks again
eebs1 has quit [Quit: Leaving.]
<al2o3-cr> dominikh: to positive could you have a look at this to see if it's correct: https://gist.github.com/anonymous/a22e009e7c1019ba1394 ?
<dominikh> probably. I won't sign off on code that runs arbitrary system commands for you :)
<eebs> o.0 That seems like a really bad idea… :P
<al2o3-cr> dominikh: sure i understand, it's hosted on c9 so not that important really :p
* al2o3-cr must be crazy
Azure has quit [Ping timeout: 272 seconds]
kith_ is now known as kith
apt-get_ has quit [Remote host closed the connection]
eebs1 has joined #cinch
djbkd has joined #cinch
djbkd has quit [Remote host closed the connection]
djbkd has joined #cinch
djbkd has quit [Remote host closed the connection]
djbkd has joined #cinch
djbkd has quit [Read error: Connection reset by peer]
djbkd has joined #cinch
postmodern has joined #cinch
djbkd has quit [Remote host closed the connection]
djbkd has joined #cinch
djbkd has quit [Ping timeout: 264 seconds]
djbkd has joined #cinch
eebs1 has quit [Quit: Leaving.]
djbkd has quit [Remote host closed the connection]
djbkd has joined #cinch
djbkd has quit [Remote host closed the connection]
sarkyniin has joined #cinch
al2o3-cr has quit [Remote host closed the connection]
al2o3-cr has joined #cinch
djbkd has joined #cinch
eebs has quit [Quit: Leaving.]
djbkd has quit [Remote host closed the connection]
djbkd has joined #cinch
djbkd has quit [Remote host closed the connection]
sarkyniin has quit [Quit: Quit]
djbkd has joined #cinch
djbkd has quit [Remote host closed the connection]
djbkd has joined #cinch
djbkd has quit [Remote host closed the connection]
djbkd has joined #cinch
djbkd has quit [Read error: Connection reset by peer]
djbkd has joined #cinch
Azure has joined #cinch
djbkd has quit [Remote host closed the connection]