Skip to content
This repository has been archived by the owner on Jan 29, 2023. It is now read-only.

Commit

Permalink
Added opertype and numeric to the config file (both optional and insp…
Browse files Browse the repository at this point in the history
…ire-only)
  • Loading branch information
Daniel committed Jan 27, 2010
1 parent a2bb116 commit 64498d4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion bitserv.yaml.dist
Expand Up @@ -2,7 +2,11 @@ uplink:
hostname: localhost
port: 7776

protocol: unrealircd
protocol: inspircd
numeric: 00A
#opertype: Services

#protocol: unrealircd

password: PASSWORD HERE

Expand Down
4 changes: 2 additions & 2 deletions protocols/inspircd.rb
Expand Up @@ -14,7 +14,7 @@ def initialize services, config
@services = services
@config = config

@me = '00B' # TODO: user a config
@me = @config['numeric'] || '00B'
@uplink = nil
@servers = {}
@servers[@me] = services.config['hostname']
Expand Down Expand Up @@ -92,7 +92,7 @@ def introduce_clone uid, ts, nick, ident=nil, realname=nil, umodes='io'
realname ||= "Your friendly neighborhood #{nick}"

send_from_me 'uid', uid, ts, nick, @servers[@me], @servers[@me], ident, '0.0.0.0', ts, "+#{umodes}", realname
send_from uid, 'opertype', 'Services'
send_from uid, 'opertype', @config['opertype'] || 'Services'
end

def introduce_bot bot
Expand Down

0 comments on commit 64498d4

Please sign in to comment.