<green-big-frog>
I'm trying to learn ruby and look up most of the stuff but sometimes I just don't get from the spot
nini1294 has quit [Ping timeout: 252 seconds]
nini1294 has joined #cinch
nini1294 has quit [Read error: Connection reset by peer]
nini1294 has joined #cinch
<dominikh>
broken code's not very useful if you don't say a) what it's supposed to do b) how it's not working
<green-big-frog>
sr...
<dominikh>
then again, line 23 essentially says "unless true"
<dominikh>
not sure what makes you think it'd accept a hash and do anything with it other then evaluating it to true
<green-big-frog>
I'm trying to check if someone is authorized... that's the only part not working... anyone can use it
<dominikh>
irb(main):005:0> if {"whatever" => "lol"}; true; end
<dominikh>
=> true
<dominikh>
if/unless are for boolean expressions.
<dominikh>
any object other than nil and false evaluates to true
<green-big-frog>
how do I then have to do it?
<dominikh>
why would `unless ({"nick"=>"green-big-frog", "host"=>"Elite12225@gateway/shell/elitebnc/x-dckwecssxpmmwiwl"})` even know what nick and host refer to?
<green-big-frog>
ok
<dominikh>
learn what boolean expressions are and how to compare things/check things for equality
<green-big-frog>
ok
nini1294 has quit [Read error: Connection reset by peer]
green-big-frog is now known as frog|OFF
_djbkd has joined #cinch
_djbkd has quit [Read error: Connection reset by peer]
_djbkd has joined #cinch
Dwarf has joined #cinch
nini1294 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 [Remote host closed the connection]
_djbkd has joined #cinch
FiXato has quit [Quit: Quit my IRC client. I'll probably be back soon after a restart of it.]
FiXato has joined #cinch
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_djbkd has quit [Remote host closed the connection]