chat.rb
rbmud-0.2/commands/chat.rb · 399 B
From the archive RbMUD-0.2.tar.bz2
Download the archive « Back to the archive contents
#!/usr/bin/env ruby
# $Revision: 1.3 $
# $Date: 2003/12/06 18:12:08 $
# $Author: mikeman2 $
# test.rb
# the contents of this file will probably change every time i want to try
# something new.
def Commands.do_chat(user, args = "")
if args.length > 0
$system.rooms.each{|rnum, obj| obj.puts("&L#{user.name} chats \"&g#{args}&L\"&*", user) }
user.puts("&LYou chat \"&g#{args}&L\"&*")
end
end