dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.0.9
Spami has quit [Ping timeout: 276 seconds]
_whitelogger has joined #cinch
space has joined #cinch
Spami has joined #cinch
Spami has quit [Quit: This computer has gone to sleep]
kx has quit [Ping timeout: 240 seconds]
kx has joined #cinch
kludge` has quit [Ping timeout: 264 seconds]
kludge` has joined #cinch
postmodern has quit [Quit: Leaving]
kludge` has quit [Quit: leaving]
kludge` has joined #cinch
rickmasta has quit [Quit: Leaving...]
rickmasta has joined #cinch
rickmasta has quit [Client Quit]
space has quit [Remote host closed the connection]
rickmasta has joined #cinch
rickmasta has quit [Quit: Leaving...]
rickmasta has joined #cinch
rickmasta has quit [Quit: Leaving...]
Spami has joined #cinch
<Apathetic> how does one unit test a cinch plugin?
rickmasta has joined #cinch
Spami has quit [Quit: This computer has gone to sleep]
rickmasta has quit [Quit: Leaving...]
rickmasta has joined #cinch
rickmasta has quit [Read error: Connection reset by peer]
rickmasta has joined #cinch
rickmasta has quit [Read error: Connection reset by peer]
rickmasta has joined #cinch
rickmasta has quit [Read error: Connection reset by peer]
rickmasta has joined #cinch
Spami has joined #cinch
rickmasta has quit [Quit: Leaving...]
postmodern has joined #cinch
<UbuPhillup> /part
<UbuPhillup> boa
UbuPhillup has left #cinch ["WeeChat 0.4.1"]
space has joined #cinch
rickmasta has joined #cinch
space has quit [Remote host closed the connection]
UberDragon has quit [Ping timeout: 245 seconds]
UberDragon has joined #cinch
<UberDragon> I'm working on making a flood protection script.. is there built in commands to ignore a nick or mask that I haven't found yet?
<dominikh> plugins can have filters. no global filters, but that can easily be engineered with plugin filters and some state in the bot
<dominikh> I can show you how I implemented ACLs, flood protection would be essentially the same mechanic
<UberDragon> awesome
<dominikh> https://github.com/dominikh/Mathetes/blob/cinch_rewrite/bot.rb#L3-L15 – every plugin that subscribes to ACLs calls "enable_acl" in the plugin on class level. that adds the hook, which acts as a filter. if the lambda returns false, the message gets dropped
<dominikh> via `shared`, which is a hash stored in bot that's accessed by all plugins, you can have configuration for it. in my case the entire ACL system (defined on line 46); in your case it might be a plain list of nicks to ignore
<UberDragon> hmm yeah makes sense. I'm using hash to store my seen data.. thanks.. I'll dig around in this