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