aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules/Avatar/Chat/ChatModule.cs (unfollow)
Commit message (Collapse)AuthorFilesLines
2009-02-10this is step 2 of 2 of the OpenSim.Region.Environment refactor.Dr Scofield1-287/+0
NOTHING has been deleted or moved off to forge at this point. what has happened is that OpenSim.Region.Environment.Modules has been split in two: - OpenSim.Region.CoreModules: all those modules that are either directly or indirectly referenced from other OpenSim packages, or that provide functionality that the OpenSim developer community considers core functionality: CoreModules/Agent/AssetTransaction CoreModules/Agent/Capabilities CoreModules/Agent/TextureDownload CoreModules/Agent/TextureSender CoreModules/Agent/TextureSender/Tests CoreModules/Agent/Xfer CoreModules/Avatar/AvatarFactory CoreModules/Avatar/Chat/ChatModule CoreModules/Avatar/Combat CoreModules/Avatar/Currency/SampleMoney CoreModules/Avatar/Dialog CoreModules/Avatar/Friends CoreModules/Avatar/Gestures CoreModules/Avatar/Groups CoreModules/Avatar/InstantMessage CoreModules/Avatar/Inventory CoreModules/Avatar/Inventory/Archiver CoreModules/Avatar/Inventory/Transfer CoreModules/Avatar/Lure CoreModules/Avatar/ObjectCaps CoreModules/Avatar/Profiles CoreModules/Communications/Local CoreModules/Communications/REST CoreModules/Framework/EventQueue CoreModules/Framework/InterfaceCommander CoreModules/Hypergrid CoreModules/InterGrid CoreModules/Scripting/DynamicTexture CoreModules/Scripting/EMailModules CoreModules/Scripting/HttpRequest CoreModules/Scripting/LoadImageURL CoreModules/Scripting/VectorRender CoreModules/Scripting/WorldComm CoreModules/Scripting/XMLRPC CoreModules/World/Archiver CoreModules/World/Archiver/Tests CoreModules/World/Estate CoreModules/World/Land CoreModules/World/Permissions CoreModules/World/Serialiser CoreModules/World/Sound CoreModules/World/Sun CoreModules/World/Terrain CoreModules/World/Terrain/DefaultEffects CoreModules/World/Terrain/DefaultEffects/bin CoreModules/World/Terrain/DefaultEffects/bin/Debug CoreModules/World/Terrain/Effects CoreModules/World/Terrain/FileLoaders CoreModules/World/Terrain/FloodBrushes CoreModules/World/Terrain/PaintBrushes CoreModules/World/Terrain/Tests CoreModules/World/Vegetation CoreModules/World/Wind CoreModules/World/WorldMap - OpenSim.Region.OptionalModules: all those modules that are not core modules: OptionalModules/Avatar/Chat/IRC-stuff OptionalModules/Avatar/Concierge OptionalModules/Avatar/Voice/AsterixVoice OptionalModules/Avatar/Voice/SIPVoice OptionalModules/ContentManagementSystem OptionalModules/Grid/Interregion OptionalModules/Python OptionalModules/SvnSerialiser OptionalModules/World/NPC OptionalModules/World/TreePopulator
2009-02-06This changeset is the step 1 of 2 in refactoringDr Scofield1-2/+2
OpenSim.Region.Environment into a "framework" part and a modules only part. This first changeset refactors OpenSim.Region.Environment.Scenes, OpenSim.Region.Environment.Interfaces, and OpenSim.Region.Interfaces into OpenSim.Region.Framework.{Interfaces,Scenes} leaving only region modules in OpenSim.Region.Environment. The next step will be to move region modules up from OpenSim.Region.Environment.Modules to OpenSim.Region.CoreModules and then sort out which modules are really core modules and which should move out to forge. I've been very careful to NOT BREAK anything. i hope i've succeeded. as this is the work of a whole week i hope i managed to keep track with the applied patches of the last week --- could any of you that did check in stuff have a look at whether it survived? thx!
2009-02-02* Make it more obvious that there is an enabled switch for chat in ↵Justin Clarke Casey1-2/+2
OpenSim.ini.example. * Add default information for other chat settings
2008-10-21fixing real cause of #2445 & #2449: Position was <0, 0, 0> forDr Scofield1-53/+31
OSChatMessage coming from client.
2008-10-20cleaning up IRCBridgeModule to allow for configuration from in-world,Dr Scofield1-76/+122
chat relaying via private channels, and old IRCBridgeModule behaviour. also cleaning up IRCBridgeModule's OpenSim.ini configuration variable names (still supporting "old" variable names). refactored IRCChatModule into IRCConnector and incorporating watchdog from IRCBridgeModule into IRCConnector. enabling ChatModule to be used as a super-class and utilizing it in ConciergeModule.
2008-10-03This changeset changes the way chat from client is routed: Dr Scofield1-95/+98
old way: each region module interested in chat from client had to - subscribe to scene.EventManager.OnNewClient - then in its OnNewClient delegate it would subscribe to client.OnChatFromViewer to capture chat messages coming new way: ChatModule is the only region module that uses the "old way" approach but is now forwarding all client chat via scene.EventManager.OnChatFromClient - each region module interested in chat from client now only subscribes to scene.EventManager.OnChatFromClient this not only simplifies code, but also allows us to substitute ChatModule with derived classes (ConciergeModule is going to be one example). Also, this changeset changes ChatFromViewer to ChatFromClient as it doesn't necessarily have to be a viewer that is a chat source. i've taken great care to only comment out those OnNewClient delegates that were only used for getting at the client chat --- hope it's not breaking anything.
2008-09-30- a couple of minor code cleanups in RestInventoryServicesDr Scofield1-49/+60
- cleanups and more comments in ChatModule and IRCBridgeModule - adding Name support in ScenePresence
2008-09-24Decouple AsyncCommands from XEngine and the script instance. MakeMelanie Thielker1-0/+3
all methods needed outside the API ststic. Async command processing is now wholly internal to the API. This sets the stage for the next convergence step.
2008-09-09Update svn properties, formatting cleanup.Jeff Ames1-1/+1
2008-09-06* This is the fabled LibOMV update with all of the libOMV types from JHurlimanTeravus Ovares1-13/+13
* This is a HUGE OMG update and will definitely have unknown side effects.. so this is really only for the strong hearted at this point. Regular people should let the dust settle. * This has been tested to work with most basic functions. However.. make sure you back up 'everything' before using this. It's that big! * Essentially we're back at square 1 in the testing phase.. so lets identify things that broke.
2008-09-02Change some chat output functions so that text is truncated atMelanie Thielker1-1/+4
1000 chars to avoid the exception thrown by libomv at 1100 chars. Change string->int conversion so it copes with non-numeric chars after the number and no longer uses a float to parse the value.
2008-07-31Thank you, sacha magne, for a patch that prevents sim chat fromMelanie Thielker1-1/+4
being heard across whole grids. Fixes Mantis #1855
2008-07-25renaming the increasingly ill-named ChatFromViewerArgs to OSChatMessageDr Scofield1-2/+2
2008-05-28Formatting cleanup.Jeff Ames1-13/+13
2008-05-27I'm dropping the ISimChat interface as that has now been Dr Scofield1-1/+1
replaced by EventManager events. also, i've added instructions to README.txt about running runprebuild.sh and on how to report bugs. plus some minor fixes (dropping m_log statement left over from debugging llOwnerSay, nicer catch of exception in IRCBridgeModule
2008-05-26This cleans up a merge mess from the earlier checkin and implements ↵Dr Scofield1-11/+23
llOwnerSay() via the newly created Scene.SimBroadcast() call.
2008-05-26Adding OnChatBroadcast event logic to EventManager providing Dr Scofield1-39/+62
a clean interface for Sim broadcasts. Added SimBroadcast support to ChatModule. Removing all code from IRCBridgeModule dealing with agent/client directly. Cleaning up ChatModule. Polishing IRC messages, adding support for "/me" (both directions).
2008-05-25Update svn properties. Formatting cleanup.Jeff Ames1-8/+8
2008-05-23IRCBridgeModule (and ChatModule before the refactoring) didn't succeed in Dr Scofield1-3/+0
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-23i've refactored the ChatModule into two modules: ChatModule and IRCBridgeModule.Dr Scofield1-709/+37
ChatModule is now only doing in-world chat. IRCBridgeModule is only doing, well, bridging chat to/from IRC. Both modules are now using a new OnChatFromWorld event handler (which Scene.PacketHandler is feeding for chat from in-world instead of going via the Interface method). This refactoring will allow us to easily add other bridge modules (e.g., an XMPP bridge module). there is still a bug in IRCBridgeModule (inherited from the old ChatModule) where FindClientRegion does not really find the client region...
2008-05-22* Plug in stubbed out archiver moduleJustin Clarke Casey1-2/+2
2008-05-16Formatting cleanup.Jeff Ames1-3/+3
2008-05-14* Removed 19 warningsTeravus Ovares1-1/+1
2008-05-05* Unraveled the DEBUG_CHANNEL mystery.Teravus Ovares1-9/+21
* Moved script errors to the debug channel. * Typing '/2147483647 OK' results in a debug_channel message. * Expanded the available parameters that are send-able through IClientAPI
2008-05-01* Rolled back a few changes.Adam Frisby1-28/+28
2008-05-01* Spring cleaning on Region.Environment. Adam Frisby1-28/+28
* Converted a large number of read-only fields to be actually, readonly. * Reformatted code sections. * Removed redundant code.
2008-05-01Update svn properties. Minor formatting cleanup.Jeff Ames1-867/+867
2008-04-30* Cruft removal step #1. Cleaning Modules directory.Adam Frisby1-156/+193
2008-04-30* Refactored Environment/Modules directory - modules now reside in their own ↵Adam Frisby1-831/+831
directory with any associated module-specific classes. * Each module directory is currently inside one of the following category folders: Agent (Anything relating to do with Client<->Server communications.), Avatar (Anything to do with the avatar or presence inworld), Framework (Classes modules can use), Grid (Grid traffic, new OGS2 grid comms), Scripting (Scripting functions, etc), World (The enrivonment/scene, IE Sun/Tree modules.) * This should be moved into a seperate project file.
2008-04-21* Optimised using statements and namespace references across entire project ↵Adam Frisby1-6/+8
(this took a while to run).
2008-04-14make it so the IRC bridge only relays channel 0 messagesSean Dague1-7/+10
not all of them (like it was doing before)
2008-04-01a few small changesMW1-7/+7
2008-03-18Formatting cleanup.Jeff Ames1-22/+27
2008-03-18Formatting cleanup.Jeff Ames1-26/+25
2008-03-03* Removed and sorted using clauses in a number of files.Adam Frisby1-1/+0
* Cleaned up ITerrainChannel * Implemented Raise, Lower, Smooth, Flatten, Noise Terrain Paint Brushes * Implemented Raise, Lower, Smooth, Flatten, Noise Terrain Fill Brushes * Implemented Export functionality for RAW32 terrain loader * Implemented Import/Export for SLRAW terrain loader * Implemented Export for JPEG terrain loader
2008-02-29Cleaned up a couple compiler warnings.Jeff Ames1-41/+27
2008-02-25* Caught HttpListenerException and swallowed if with outputlbsa711-1/+0
* Moved Flush into Close since it's always done in that order. * Minor renamings * Reversed if for clarity
2008-02-21"threads" command now works. I've added manual tracking of threads (only if ↵Tedd Hansen1-2/+10
compiled in DEBUG mode)... Its ugly and even requires a separate thread to track the treads, but it will be very valuable in debugging.
2008-02-20Minor cleanup.Jeff Ames1-1/+1
2008-02-19Playing "Name that thread". Adding names and isbackground=true to all ↵Tedd Hansen1-3/+18
threads so it will be easier to debug.
2008-02-14* Made new Framework.Constants class, added RegionSize member.Adam Frisby1-2/+2
* Converted all instances of "256" spotted to use RegionSize instead. Some approximations used for border crossings (ie 255.9f) are still using that value, but should be updated to use something based on RegionSize. * Moving Terrain to a RegionModule, implemented ITerrainChannel and TerrainModule - nonfunctional, but will be soon.
2008-02-05Converted logging to use log4net.Jeff Ames1-53/+50
Changed LogBase to ConsoleBase, which handles console I/O. This is mostly an in-place conversion, so lots of refactoring can still be done.
2008-02-04* Chat Message format patch from kinoc (#443) Thanks!Adam Frisby1-2/+19
2008-02-02Thank you very much, Kinoc for : Moved the Listener loop try/catch to a ↵Charles Krinke1-8/+17
better position. Uses the IRC nick as the default when user location cannot be determined.
2008-02-01Thank you, Kinoc for the ChatModule.cs updates.Charles Krinke1-75/+491
2008-01-31revert last IRC bridge changes as this broke chat on my test environment.Sean Dague1-80/+23
Going to sift through the diff later to sort out what the root cause is here.
2008-01-29Thanks kinoc for your improved IRC Gateway patch as referenced in mantis ↵Teravus Ovares1-23/+80
issue 390.
2007-12-27* Optimized usingslbsa711-5/+5
* shortened references * Removed redundant 'this' * Normalized EOF
2007-12-17make it so prims don't relay into IRCSean Dague1-4/+2
2007-12-17ignore Primitive for the IRC relaySean Dague1-1/+3