Skip to content

Commit

Permalink
migrate wide servers
Browse files Browse the repository at this point in the history
  • Loading branch information
psychs committed Jan 17, 2010
1 parent a0c8c49 commit 96d82b7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 0 additions & 4 deletions ruby/dialog/serverdialog.rb
Expand Up @@ -31,10 +31,6 @@ def config

JA_SERVERS = [
'irc.ircnet.ne.jp (IRCnet)',
'irc.nara.wide.ad.jp (IRCnet)',
'irc.fujisawa.wide.ad.jp (IRCnet)',
'irc.huie.hokudai.ac.jp (IRCnet)',
'irc.media.kyoto-u.ac.jp (IRCnet)',
'-',
'irc.friend-chat.jp (Friend)',
'irc.2ch.net (2ch)',
Expand Down
8 changes: 7 additions & 1 deletion ruby/irc/unit.rb
Expand Up @@ -59,9 +59,15 @@ def setup(seed)

def migrate
# migrate irc.friend.td.nu to irc.friend-chat.jp
if @config.host =~ /irc.friend.td.nu/
if @config.host =~ /^irc.friend.td.nu/
@config.host = 'irc.friend-chat.jp'
end

# migrate wide servers
case @config.host
when /^irc.kyoto.wide.ad.jp/,/^irc.nara.wide.ad.jp/,/^irc.tokyo.wide.ad.jp/,/^irc.fujisawa.wide.ad.jp/,/^irc.huie.hokudai.ac.jp/,/^irc.media.kyoto-u.ac.jp/
@config.host = 'irc.ircnet.ne.jp'
end
end

def update_config(seed)
Expand Down

0 comments on commit 96d82b7

Please sign in to comment.