dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.0.10
kith has quit [Quit: kith]
kith has joined #cinch
sabfer has joined #cinch
Spami has quit [Quit: This computer has gone to sleep]
Spami has joined #cinch
Spami has quit [Remote host closed the connection]
sabfer has quit []
Spami has joined #cinch
Spami has quit [Quit: This computer has gone to sleep]
Spami has joined #cinch
<CM-Punk> Can Cinch ignore a user?
Spami has quit [Quit: This computer has gone to sleep]
Spami has joined #cinch
Azure has quit [Quit: My MBP went to sleep.]
Spami has quit [Read error: Connection reset by peer]
Spami has joined #cinch
Spami has quit [Ping timeout: 246 seconds]
Spami has joined #cinch
waxjar has quit [Ping timeout: 264 seconds]
waxjar has joined #cinch
waxjar has quit [Ping timeout: 260 seconds]
waxjar has joined #cinch
<ayonix> CM-Punk: I guess you have to implement that yourself
postmodern has quit [Quit: Leaving]
postmodern has joined #cinch
Dwarf_ is now known as Dwarf
mpapis has joined #cinch
Azure has joined #cinch
sindork has quit [*.net *.split]
cyrusdavid has quit [*.net *.split]
Zackio has quit [*.net *.split]
robonerd has quit [Ping timeout: 245 seconds]
sindork has joined #cinch
cyrusdavid has joined #cinch
Zackio has joined #cinch
Azure has quit [Quit: My MBP went to sleep.]
Azure has joined #cinch
robonerd has joined #cinch
Spami has quit [Quit: This computer has gone to sleep]
<CM-Punk> Alright, I'm stuck. I need to create a handler that will read this yaml and see if a nick is included in it, but I can't get it to work
AntiDjin has joined #cinch
AntiDjin has left #cinch [#cinch]
<ayonix> so what's your problem?
<CM-Punk> I can't get the handler to work
<ayonix> but your adding works?
<ayonix> besides, `elsif user == m.user.nick` should probably be `elsif user == m.bot.nick` in your add method
<CM-Punk> Okay
<CM-Punk> Yeah, the adding works.
<ayonix> why don't you do it just like in your add method then?
<ayonix> you checked if a user is in there already
<CM-Punk> Because it says "undefined method 'key?'
<ayonix> where
<ayonix> in your check_abuser?
<CM-Punk> Yeah
<ayonix> so what have you tried there?
<ayonix> loaded the yaml and checked for the key?
<CM-Punk> Yeah, I also tried " if @abusers.include? user"
<CM-Punk> I don't get any exception when I load the YAML but it doesn't stop the bot from responding when I integrate it into the other plugin
<CM-Punk> Same with " @abusers.include? user" if I remember right
<ayonix> http://pastebin.com/1bFXa9LW should work though
<CM-Punk> Okay...
<CM-Punk> So in my other plugin I want to integrate it with, I should require this plugin, and it should work?
<ayonix> ...
<ayonix> so you have that plugin to log abusers
<ayonix> and you have another plugin where you want to check if the user is an abuser?
<CM-Punk> Yes
<CM-Punk> Because
<CM-Punk> Hold on
<CM-Punk> https://github.com/Namasteh/Eve-Bot/blob/master/lib/eve/plugins/ai.rb I don't want people to be able to abuse this
<CM-Punk> So I need to integrate the check into here
<catepillar> that thing is ridiculous
<catepillar> all of thoses matches seem quite unnecessary
<ayonix> told him that before
<ayonix> but i don't know what the best way to use a plugin in another one is :)
<catepillar> first off, these are regexes
<catepillar> so most of the caps and one letter differences can be combined
<CM-Punk> Well, the version I have on my desktop right now has all the case differences removed.
<CM-Punk> i identifier added to ignore case
<CM-Punk> I don't know about combining the one character differences.
<CM-Punk> Like I said, I'm new
<catepillar> http://rubular.com/
<catepillar> i love that site
<CM-Punk> ayonix that why I was trying to define a handler!
<ayonix> with handlers you won't get return types i guess
<ayonix> or what do you mean with handler?
<CM-Punk> Is there a way to enter the file into an array?
<CM-Punk> For this I just added a plugin to add them remotely instead of hardcoding an array
<ayonix> if you save it as yaml, why dont you load it as one?
<CM-Punk> How so?
<ayonix> like you already did?
<ayonix> @abusers = YAML.load_file('abusers.yaml')
<ayonix> of course you could do it like that
<ayonix> but you would have to write and read the file everytime you want to access it so the file itself is synchronized i think
<CM-Punk> Yeah I already did a http://pastebin.com/pWug4URr and it didn't work
<CM-Punk> I really need this to work and I'm at a loss
<ayonix> You need to load it again after the file has changed
<CM-Punk> Doesn't the helper load it when it checks?