Revert "tcpbot branchgit add *!"

This reverts commit cbaca23028cdab436e253d2803c46513a021b27e.
This commit is contained in:
oz 2021-05-08 14:25:41 +00:00
parent 2a6d3a8265
commit 731f31b71b
2 changed files with 4 additions and 12 deletions

@ -162,13 +162,7 @@ module Util
def initialize(host)
@bot = Cinch::Bot.new do
configure do |c|
hostname, port = host.split(/:/)
if(port.nil?)
port=6697
end
c.server = hostname
c.port = port
c.ssl.use = (port==6697?true:false)
c.server = host
mong = Util.instance
conf = mong.getCollection("extendobot","config");
name = mong.hton(host)
@ -179,8 +173,7 @@ module Util
if(pass.to_a[0])
passwd = pass.to_a[0]["val"]
end
c.sasl.username=c.nick
c.sasl.password=passwd
chans = mong.getCollection("chans","channels")
cList = chans.find({'autojoin' => true, 'server' => name}).collect { |x|
x['channel']
@ -200,7 +193,7 @@ module Util
p m
Timer(5, {:shots => 4}) { m.bot.join(m.channel) }
end
/*if(passwd != nil)
if(passwd != nil)
c.plugins.plugins.push(Cinch::Plugins::Identify)
c.plugins.options[Cinch::Plugins::Identify] = {
:username => c.nick,
@ -208,7 +201,6 @@ module Util
:password => passwd
}
end
*/
end
end

@ -1,4 +1,4 @@
#!/usr/bin/ruby
#!/usr/bin/ruby1.9.1
require 'cinch'
require_relative './classes/Util'