Compare commits

..

No commits in common. "9d4b991b195a4b7fd8c14302ece8b913426ace93" and "b4b98879bc50a72d13fba7f697a19c577b148698" have entirely different histories.

3 changed files with 9 additions and 16 deletions

View File

@ -107,16 +107,14 @@ module Backend_IRC
@real = Cinch::Bot.new do
configure do |cfg|
cfg.server = info[:server]
cfg.nick = info[:nick] || "vrobot4"
cfg.port = info[:port] if info.key? :port
cfg.password = info[:pass] if info.key? :pass
cfg.modes = info[:modes] if info.key? :modes
cfg.channels = info[:channels] if info.key? :channels
cfg.ssl = true
cfg.ssl.verify = true
cfg.realname = "vrobot4"
cfg.user = "vrobot4"
cfg.server = info[:server]
cfg.nick = info[:nick] || "vrobot4"
cfg.port = info[:port] if info.key? :port
cfg.password = info[:pass] if info.key? :pass
cfg.modes = info[:modes] if info.key? :modes
cfg.channels = info[:channels] if info.key? :channels
cfg.realname = "vrobot4"
cfg.user = "vrobot4"
cfg.message_split_start = ""
cfg.message_split_end = ""
end

View File

@ -4,11 +4,9 @@ class Mod_RoleChooser < Vrobot4::Module::Module
def initialize info
super
register :c_addvrole, "addvroles", "Adds another vanity role to you."
register :c_delvrole, "delvroles", "Removes a vanity role from you."
register :c_listvroles, "listvroles", "Lists available vanity roles."
@info.map! do |id| id.resolve_id end
end
@ -34,7 +32,7 @@ class Mod_RoleChooser < Vrobot4::Module::Module
def c_listvroles m, argv
text = ""
for role in @info do
text << m.chan.real.server.role(role).name + ?\n
text << m.chan.real.server.role(role).name + "\n"
end
m.reply text
end

View File

@ -76,9 +76,6 @@ module Vrobot4::Server
# @return [void]
def load_mod mod
mt = Vrobot4::Module.get_module_type(mod)
if mt == nil
raise ArgumentError, "No such module #{mod} exists"
end
if mt[:server] and mt[:server] != self.class.type or
mt[:servflags] and mt[:servflags] !~ flags then
raise ArgumentError, "Module #{mod} is not valid for this server"