Welcome, Guest. Please login or register.
Kingdoms of Ahln
Pages: [1]
  Print  
Author Topic: Ainfo not parsing properly  (Read 413 times)
Saffire
Citizen
***
Posts: 136


View Profile
« on: June 07, 2009, 08:52:40 pm »

In the commandparser the ainfo set command isn't parsing properly. When I tried this command for example:

Quote
ainfo set board board_name The divine bulletin board

I would get this error:

Quote
What object? board board_name The divine

So I changed line 494 in components/commandparser.rb to this:

Code:
when /^ainfo\s+set\s+(.*?)\s+@((\w|\.|\_)+)\s+(.*?)$/i

Which basically requires that each time you try to set the info's attribute you need to preceed it with an @ symbol, like in aset, so the command becomes this:

Quote
ainfo set board @board_name The divine bulletin board

Which fixes the problem completely.
Logged
Justin
Administrator
Citizen
*****
Posts: 189



View Profile
« Reply #1 on: June 07, 2009, 09:15:58 pm »

Hm....good point. Either the object's name needs to be limited a single word, or there needs to be a special character, like you added.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.15 | SMF © 2006-2009, Simple Machines
Terra97 design by Bloc