Browse files

Fixed an order thing, updated the readme

  • Loading branch information...
1 parent 0315807 commit a8279a260ad1864367d0bcca581f3725c4436be0 @Sutto committed Nov 8, 2008
Showing with 24 additions and 16 deletions.
  1. +9 −1 README.textile
  2. +15 −15 lib/kookaburra/irc/client_extensions/handle_mixin.rb
View
10 README.textile
@@ -1,6 +1,8 @@
h1. Kookaburra - a Ruby IRCD
-Kookaburra is an simple open source IRCD written in Ruby.
+!http://blog.ninjahideout.com/uploads/datas/123/original/logo.png!
+
+Kookaburra-Server simple open source IRCD written in Ruby.
It's a fork of "ruby-ircd":http://code.google.com/p/ruby-ircd/ with
some new work done (note: I'm moving towards rewriting everything).
@@ -25,5 +27,11 @@ To use, try:
h2. Todo
# Tests tests tests!
+# Massive refactoring / clean up of the code
+# Extensive testing
+# Ninjas!
+# less-hacked together interface
+# Move towards Marvin-esque handlers / events system
+# Oh, did I mention tests?
Kudos!
View
30 lib/kookaburra/irc/client_extensions/handle_mixin.rb
@@ -28,23 +28,23 @@ def handle_nick(s)
userlist[s] = self if self.nick != s
Kookaburra::Stores.users.delete(@nick)
@nick = s
- end
- Kookaburra::Stores.users[self.nick] = self
- #send the info to the world
- #get unique users.
- @channels.each do |c|
- Kookaburra::Stores.channels[c].each_user do |u|
- userlist[u.nick] = u
+ Kookaburra::Stores.users[self.nick] = self
+ #send the info to the world
+ #get unique users.
+ @channels.each do |c|
+ Kookaburra::Stores.channels[c].each_user do |u|
+ userlist[u.nick] = u
+ end
end
+ userlist.values.each do |user|
+ user.reply :nick, s
+ end
+ @usermsg = ":#{@nick}!~#{@user}@#{@peername}"
+ Kookaburra.message_server.unviewed_for(self.nick).each do |message|
+ reply :privmsg, ":#{message.from}!~unknown@cockatoo-server-queue", self.nick, message.content
+ end
+ Kookaburra.message_server.mark_as_viewed!(self.nick)
end
- userlist.values.each do |user|
- user.reply :nick, s
- end
- @usermsg = ":#{@nick}!~#{@user}@#{@peername}"
- Kookaburra.message_server.unviewed_for(self.nick).each do |message|
- reply :privmsg, ":#{message.from}!~unknown@cockatoo-server-queue", self.nick, message.content
- end
- Kookaburra.message_server.mark_as_viewed!(self.nick)
else
#check if we are just nicking ourselves.
unless Kookaburra::Stores.users[s] == self

0 comments on commit a8279a2

Please sign in to comment.