NadokaさんのBackLogBotをシンプルに

plugins/backlogbot.nbでPRIVMSGとNOTICEだけ送るようにするパッチ。
(自分でやったらしいが全然記憶になかったのでメモ)

31,32c31,32
<   :prefix      => 'BL',
<   :sender      => 'backlogbot',
---
>   :prefix      => '',
>   :sender      => 'log',
60,66c60,69
<           msg  = @config.log_format_message(@msgfmts, msgobj)
<           rch  = msgobj[:ch]
<           time = msgobj[:time]
< 
<           cmd = Cmd.notice(rch, "#{@prefix}(#{time.strftime(@tmfmt)}) #{msg}")
<           client.add_prefix(cmd, @talker ? nick : @sender)
<           client.send_msg cmd
---
>         type = msgobj[:type]
>         if type == 'PRIVMSG' or type == 'NOTICE'
>             msg  = @config.log_format_message(@msgfmts, msgobj)
>             rch  = msgobj[:ch]
>             time = msgobj[:time]
> 
>             cmd = Cmd.notice(rch, "#{@prefix}(#{time.strftime(@tmfmt)}) #{msg}")
>             client.add_prefix(cmd, @talker ? nick : @sender)
>             client.send_msg cmd
>         end