Skip to content
This repository was archived by the owner on Nov 10, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions isaac.gemspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Gem::Specification.new do |s|
s.name = "isaac"
s.version = "0.3.0"
s.date = "2009-12-21"
s.version = "0.3.1"
s.date = "2014-02-28"
s.summary = "The smallish DSL for writing IRC bots"
s.email = "[email protected]"
s.homepage = "http://github.com/ichverstehe/isaac"
Expand Down
6 changes: 4 additions & 2 deletions lib/isaac/bot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module Isaac

class Bot
attr_accessor :config, :irc, :nick, :channel, :message, :user, :host, :match,
:error
:error, :invite

def initialize(&b)
@events = {}
Expand Down Expand Up @@ -170,6 +170,8 @@ def parse(input)
message "PONG :#{msg.params.first}"
elsif msg.command == "PONG"
@queue.unlock
elsif msg.command == "INVITE"
@bot.dispatch(:invite, msg)
else
event = msg.command.downcase.to_sym
@bot.dispatch(event, msg)
Expand Down Expand Up @@ -267,7 +269,7 @@ def message
private
# This is a late night hack. Fix.
def regular_command?
%w(PRIVMSG JOIN PART QUIT).include? command
%w(INVITE PRIVMSG JOIN PART QUIT).include? command
end
end

Expand Down