1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266
|
## -*-ruby-*- vim: set filetype=ruby :
##
## Nadoka Sample resource file
## $Id: nadokarc 240 2010-09-29 14:19:09Z znz $
#
# Copyright (c) 2004-2005 SASADA Koichi <ko1 at atdot.net>
#
# This program is free software with ABSOLUTELY NO WARRANTY.
# You can re-distribute and/or modify this program under
# the same terms of the Ruby's lisence.
#
#
class NADOKA_Config < Nadoka::NDK_ConfigBase
###############################################
# System setting
# Setting_name = 'IRCNet'
# # If you don't specify Setting_name,
# # system use rc file name as setting name
# # if your rc file is "test.rc", setting name is "test"
# # (remove last .rc)
#
# 0: quiet
# 1: ch log only
# 2: normal
# 3: debug
Loglevel = 2
###############################################
# client server setting
Client_server_port = 6667 # or nil (no listen)
Client_server_host = nil # You can specify binding host(interface)
Client_server_pass = 'NadokaPassWord'
Client_server_acl = nil
# ACL(Access Control List) example:
# Client_server_acl = %q{
# deny all
# allow 192.168.1.1
# allow 192.168.2.0/24
# } # ACL setting must be String
#
# or you can set acl directly like follows:
#
# ACL_Object = ::ACL.new(...)
#
###############################################
# server setting
# IRCnet servers in Japan
Servers = [
{ :host => 'irc.ircnet.ne.jp',
:port => 6667, # default: 6667
:pass => nil, # default: nil
},
{ :host => 'irc.media.kyoto-u.ac.jp',
:port => (6660 .. 6669),
},
{ :host => 'irc.huie.hokudai.ac.jp',
# without :port, use 6667 as default port
},
# IPv6 Sample
# {
# :host => 'irc6.ircnet.ne.jp',
# :port => 6667,
# },
# {
# :host => 'irc6.livedoor.ne.jp',
# :port => (6660 .. 6669),
# },
]
#Servers = [
# SSL Sample
# {
# :host => 'ircs.example.net',
# :port => 6697,
# :ssl_params => { # with :ssl_params hash, use ssl
# # :ca_cert => "/etc/ssl/certs", # default: openssl's default certificates
# },
# },
#]
###############################################
# userinfo
User = ENV['USER'] || ENV['USERNAME'] || 'nadokatest'
Nick = ENV['USER'] || ENV['USERNAME'] || 'ndk_nick'
Hostname = Socket.gethostname
Realname = 'nadoka user'
Mode = nil
Away_Message = 'away'
# If this item is String, your nick will
# be that when no clients are connected.
Away_Nick = nil
# Quit_Message = "Quit Nadoka"
###############################################
# channel info
# log filename format
# ${setting_name} : Setting name
# ${channel_name} : Channel name
# %? : Time#strftime format(see ruby reference)
#
Default_log = {
:file => '${setting_name}-${channel_name}/%y%m%d.log',
:time_format => '%H:%M:%S',
:message_format => {
'PRIVMSG' => '<{nick}> {msg}',
'NOTICE' => '{{nick}} {msg}',
'JOIN' => '+ {nick} ({prefix:user}@{prefix:host})',
'NICK' => '* {nick} -> {newnick}',
'QUIT' => '- {nick} (QUIT: {msg}) ({prefix:user}@{prefix:host})',
'PART' => '- {nick} (PART: {msg}) ({prefix:user}@{prefix:host})',
'KICK' => '- {nick} was kicked by {kicker} ({msg})',
'MODE' => '* {nick} changed mode ({msg})',
'TOPIC' => '* TOPIC: {msg} (by {nick})',
'SYSTEM' => '[NDK] {orig}',
'OTHER' => '{orig}',
'SIMPLE' => '{orig}',
},
}
System_log = {
:file => '${setting_name}-system.log',
:time_format => '%y/%m/%d-%H:%M:%S',
:message_format => {
'PRIVMSG' => '{ch} <{nick}> {msg}',
'NOTICE' => '{ch} {{nick}} {msg}',
'JOIN' => '{ch} + {nick} ({prefix:user}@{prefix:host})',
'NICK' => '{ch} * {nick} -> {newnick}',
'QUIT' => '{ch} - {nick} (QUIT: {msg}) ({prefix:user}@{prefix:host})',
'PART' => '{ch} - {nick} (PART: {msg}) ({prefix:user}@{prefix:host})',
'KICK' => '{ch} - {nick} was kicked by {kicker} ({msg})',
'MODE' => '{ch} * {nick} changed mode ({msg})',
'TOPIC' => '{ch} * TOPIC: {msg} (by {nick})',
'SYSTEM' => '[NDK] {orig}',
'OTHER' => nil,
'SIMPLE' => nil,
},
}
Talk_log = {
:file => '${setting_name}-talk/%y%m%d.log',
:time_format => Default_log[:time_format],
:message_format => {
'PRIVMSG' => '[{sender} => {receiver}] {msg}',
'NOTICE' => '{{sender} => {receiver}} {msg}',
}
}
Channel_info = {
# nadoka talk (from Japanese server only)
'#nadoka' => {
# timing
# :startup / when nadoka start up <= default
# :login / when user login
# otherwise nadoka won't login automatically
:timing => :startup,
:log => '${setting_name}-nadoka-chan/%y%m%d.log',
# :part_message => "bye bye"
# :initial_mode => "+s"
},
'#nadoka:*.jp' => {
:timing => :startup,
:log => '${setting_name}-nadoka-chan-jp/%y%m%d.log',
},
# nadoka bot channel
'#nadoka_check' => {
:timing => :startup,
:log => '${setting_name}-nadoka-check/%y%m%d.log',
# you can specify store backlog lines
:backlog_lines => 5,
},
#
# '#log_setting_example' => {
# :log => {
# :file => 'logfilename', # log filename
# # :io => $stderr, # or IO object is supported
# :time_format => '%H:%M:%S',
# # :channel_name_in_file_name => 'hoge'
#
# :message_format => {
# 'PRIVMSG' => '<{nick}> {msg}',
# 'NOTICE' => '{{nick}} {msg}',
# 'JOIN' => '+ {nick} to {ch}',
# 'NICK' => '* {nick} -> {newnick}',
# 'QUIT' => '- {nick} ({msg})',
# 'PART' => '- {nick} from {ch} ({msg})',
# 'KICK' => '- {nick} kicked by {kicker} ({msg}) from {ch}',
# 'MODE' => '* {nick} changed mode ({msg})',
# 'TOPIC' => '<{ch} TOPIC> {msg}',
# 'SYSTEM' => '[NDK] {msg}',
# 'OTHER' => nil,
# 'SIMPLE' => nil,
#
# # for more complex log output:
# # :logwriterclass => your_log_writer_class,
# # :logwriter => your_log_writer_instance,
# # :other_logwriterclass_specific_setting => ...,
# },
# },
}
BackLog_Lines = 20
#
# FilenameEncoding = 'euc'
# FilenameEncoding = 'sjis'
# FilenameEncoding = 'utf8'
#
# If you not specify FilenameEncoding, nadoka infers
# suitable encoding (see ndk/config.rb).
#
###############################################
# Directory
Log_dir = './log'
Plugins_dir = './plugins'
# You can set Plugins_dir as Enumerable object.
# ex: ['./dir1', './dir2', ...]
###############################################
# Bots
BotConfig = [
# :BotName1,
# :BotName1,
# 'BotName1',
# :BotName2,
# { :name => :BotName3,
# :set1 => setting1,
# },
# { :name => :BotName3,
# :set1 => setting2,
# },
# { :name => :BotName4,
# :set1 => setting3,
# },
:BackLogBot, # strongly recommended
]
###############################################
# Misc
Privmsg_Filter = nil
Notice_Filter = nil
end
|