Check if 'ignores' is available at all, return if 'ignores' is not configured
Check if 'ignores' is available at all, return if 'ignores' is not configured

Fixes the following stack-trace:

exceptions.KeyError: 'ignores'
Traceback (most recent call last):
  File "/usr/lib64/python2.6/site-packages/twisted/internet/tcp.py", line 463, in doRead
    return self.protocol.dataReceived(data)
  File "/usr/lib64/python2.6/site-packages/twisted/words/protocols/irc.py", line 1705, in dataReceived
    basic.LineReceiver.dataReceived(self, data.replace('\r', ''))
  File "/usr/lib64/python2.6/site-packages/twisted/protocols/basic.py", line 231, in dataReceived
    why = self.lineReceived(line)
  File "/usr/lib64/python2.6/site-packages/twisted/words/protocols/irc.py", line 1713, in lineReceived
    self.handleCommand(command, prefix, params)
--- <exception caught here> ---
  File "/usr/lib64/python2.6/site-packages/twisted/words/protocols/irc.py", line 1725, in handleCommand
    method(prefix, params)
  File "/usr/lib64/python2.6/site-packages/twisted/words/protocols/irc.py", line 1257, in irc_PRIVMSG
    self.privmsg(user, channel, message)
  File "/home/nixpanic/devel/newpyfibot/botcore.py", line 280, in privmsg
    if self.factory.isIgnored(user):
  File "./pyfibot.py", line 380, in isIgnored
    for pattern in self.config['ignores']:
exceptions.KeyError: 'ignores'

Signed-off-by: Niels de Vos <a802a5730c0da02a06106670cc12c7838c6e90dc@nixpanic.net>

nigeljonez/newpyfibot