Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

littlemuc as running at chat@ssh.hq.c3d2.de

  • Loading branch information...
commit 027bc9f431035d82e1358bb13ece1eafb8960e71 1 parent 7290e2d
@astro authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 littlemuc.rb
View
7 littlemuc.rb
@@ -52,19 +52,20 @@ def f
end
end
-MUC = 'c3d2@conference.jabber.ccc.de'
+MUC = 'c3d2@muc.hq.c3d2.de'
+Readline::completion_proc = lambda { |*a| [] }
nick = nil
while nick.to_s == ''
nick = Readline::readline('Your nick: ')
end
-cl = Jabber::Client.new(Jabber::JID.new('collector', 'jabber.ccc.de', nick))
+cl = Jabber::Client.new("#{nick}@anonxmpp.hq.c3d2.de/ssh chat@ssh.hq.c3d2.de")
Jabber::Version::SimpleResponder.new(cl, 'Astro\'s LittleMUC', '0.0',
"XMPP4R-#{Jabber::XMPP4R_VERSION} on Ruby-#{RUBY_VERSION}")
puts "#{Color::Yellow}Connecting...#{Color::Reset}"
cl.connect
puts "#{Color::Yellow}Authenticating...#{Color::Reset}"
-cl.auth '***'
+cl.auth_anonymous
puts "#{Color::Green}Joining room #{Color::Yellow}#{MUC}#{Color::Reset}"
muc = Jabber::MUC::SimpleMUCClient.new(cl)
muc.on_message { |time,nick,text|
Please sign in to comment.
Something went wrong with that request. Please try again.