mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
Add proper handling for shared vs. unshared modules to the command
interface. Shared modules will now only get added once, so the command handler is called once per module, not once per scene. Removal of scenes has no adverse effects. Nonshared modules will be called for each scene.
This commit is contained in:
@@ -79,16 +79,16 @@ namespace pCampBot
|
||||
}
|
||||
}
|
||||
|
||||
m_console.Commands.AddCommand("bot", "shutdown",
|
||||
m_console.Commands.AddCommand("bot", false, "shutdown",
|
||||
"shutdown",
|
||||
"Gracefully shut down bots", HandleShutdown);
|
||||
|
||||
m_console.Commands.AddCommand("bot", "quit",
|
||||
m_console.Commands.AddCommand("bot", false, "quit",
|
||||
"quit",
|
||||
"Force quit (DANGEROUS, try shutdown first)",
|
||||
HandleShutdown);
|
||||
|
||||
m_console.Commands.AddCommand("bot", "add bots",
|
||||
m_console.Commands.AddCommand("bot", false, "add bots",
|
||||
"add bots <number>",
|
||||
"Add more bots", HandleAddBots);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user