OpenSimMirror/OpenSim
Dr Scofield 09188d5d10 IRCBridgeModule (and ChatModule before the refactoring) didn't succeed in
finding out which region a new avatar was logging in to; the same problem
occurred when the client/avatar logged out. the reason was mani-fold:

- Scene.AddNewClient(...) would call SubscribeToClientEvents(client)
  which would subscribe to all client events and then call 
  TriggerOnNewClient(...) BEFORE the ScenePresence object had even been
  created and added. i've moved the TriggerOnNewClient() call to the
  end of Scene.AddNewClient()
- Scene.AddNewClient(...) is called with child == true; a later call
  to ScenePresence.MakeRootAgent() will turn child to false. When
  OnNewClient is triggered, child is still true, causing IRCBridgeModule's
  FindClientRegion to ignore the ScenePresence of the new avatar.

i've changed IRCBridgeModule to still use OnNewClient and also OnLogout
and OnConnectionClosed but only to signal that the avatar has logged on
(logged off respectively). to track whether an avatar has actually entered
a region i've added EventManager.OnMakeRootAgent (complementing 
OnMakeChildAgent). 

also, i've cleaned up the internal IRCModule code a bit. currently it 
still uses IClientAPI.SendChatMessage() which replicates the code in
ChatModule, that needs to be changed to use TriggerOnChatFromWorld().
2008-05-23 16:07:47 +00:00
..
ApplicationPlugins here are further enhancements to the IHttpAgentHandler and to BaseHttpServer (from awebb) 2008-05-22 12:00:01 +00:00
Data add a lock on the update, this should have been there before. 2008-05-22 18:31:47 +00:00
Framework Thank you kindly, Melanie, for: 2008-05-23 02:45:52 +00:00
Grid * Fix circular dependency from last checkin by passing version as a parameter to Scene rather than referencing VersionInfo directly 2008-05-22 00:18:33 +00:00
Region IRCBridgeModule (and ChatModule before the refactoring) didn't succeed in 2008-05-23 16:07:47 +00:00
TestSuite Update svn properties. Minor formatting cleanup. 2008-05-19 13:26:42 +00:00
Tests Formatting cleanup. 2008-05-16 01:22:11 +00:00
Tools Add copyright notices. 2008-05-20 15:38:49 +00:00