aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/Avatar/Chat/ChatModule.cs (unfollow)
Commit message (Collapse)AuthorFilesLines
2012-11-13Another 21 modules' directives moved out of .addin.xmlDiva Canto1-0/+2
2012-10-25Fix script error messages not showing up in viewer 3 and associated viewers.Justin Clark-Casey (justincc)1-12/+27
Viewer 3 will discard such a message if the chat message owner does not match the avatar. We were filling the ownerID with the primID, so this never matched, hence viewer 3 did not see any script error messages. This commit fills the ownerID in with the prim ownerID so the script owner will receive script error messages. This does not affect viewer 1 and associated viewers which continue to process script errors as normal.
2012-04-23Mantis 5977 Corrections to llRegionSayToTalun1-17/+35
Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
2011-11-03Rename ForEachAvatar back to ForEachScenePresence. The other changesDan Lake1-1/+1
from previous commit which sort out which iterator is used are left intact. A discussion is needed as to what constitutes an avatar vs a ScenePresence.
2011-11-03Renamed ForEachRootScenePresence to ForEachAvatar. Cleaned up calls toDan Lake1-7/+7
the 3 iteration functions so more of them are using the correct iteration for the action they are performing. The 3 iterators that seem to fit all actions within OpenSim at this time are: ForEachAvatar: Perform an action on all avatars (root presences) ForEachClient: Perform an action on all clients (root or child clients) ForEachRootClient: Perform an action on all clients that have an avatar There are still a dozen places or so calling the old ForEachScenePresence that will take a little more refactoring to eliminate.
2011-11-02Change default say distance to 20m from 30m, the same as on the big grid. ↵Justin Clark-Casey (justincc)1-1/+1
This is to improve the migration of scripts that expect a 20m say distance. If you want to keep a 30m say distance then please set this as the say_distance parameter in the [Chat] section of OpenSim.ini.
2011-10-27Added new ForEachRootScenePresence to Scene since almost every delegate ↵Dan Lake1-5/+2
passed to ForEachScenePresence checks for !IsChildAgent first. It consolidates child and root handling for coming refactors.
2010-10-27Formatting cleanup.Jeff Ames1-1/+1
2010-10-22Allow region modules to know which agents actually receive chatJustin Clark-Casey (justincc)1-8/+36
2010-10-22Allow region modules to know which agents actually receive chatJustin Clark-Casey (justincc)1-8/+36
2010-09-18Stop broadcasting non 0/DEBUG ChatTypeEnum.Region messages to all avatarsJustin Clark-Casey (justincc)1-3/+1
This allows non public/debug region wide messages to be sent to scripts but not be broadast to avatars
2010-05-14Apply patch from http://opensimulator.org/mantis/bug_view_page.php?bug_id=4671Justin Clark-Casey1-0/+4
Fixes a bug where the viewer didn't recieve the uuid of a chat broadcasting object Thanks crystalsgalicia!
2009-11-25Change chat config code so that enabled = false actually does disable the ↵Justin Clark-Casey (justincc)1-2/+3
chat module
2009-11-25minor: remove some mono compiler warnings, add --merge load oar switch to ↵Justin Clark-Casey (justincc)1-1/+0
help information
2009-10-15* Removed some of the redundant broadcast functions in Scene and SceneGraph ↵John Hurliman1-5/+6
so it is clear who/what the broadcast is going to each time * Removed two redundant parameters from SceneObjectPart * Changed some code in terse update sending that was meant to work with references to work with value types (since Vector3 and Quaternion are structs) * Committing a preview of a new method for sending object updates efficiently (all commented out for now)
2009-10-01Formatting cleanup.Jeff Ames1-1/+1
2009-08-17Did I say that i don't like git? Remove some stuff that shouldn't haveMelanie1-13/+0
gone in.
2009-08-17Add System.Xml reference to the console projectMelanie1-0/+13
2009-08-10Replace the Replaceable modules nameMelanie1-1/+1
2009-07-10Committing the interface change and the addition to the modules to getMelanie Thielker1-0/+5
the ball rolling on replacable modules. No user functionality yet
2009-06-25- fixes a "collection out of sync" exception in the ODE physicsDr Scofield1-2/+2
engine, caused by an "avatar infinite position" occurring under heavy load. - fixes "value too small" exception in ChatModule
2009-06-01Minor: Change OpenSim to OpenSimulator in older copyright headers and ↵Jeff Ames1-1/+1
LICENSE.txt.
2009-05-22converting Chat module and Concierge module to new style region modulesDr Scofield1-21/+48
2009-03-05* Replace some string to byte conversions for object/item name/description ↵Justin Clarke Casey1-2/+3
fields with the LLUtil function that prevents the max string size from being breached
2009-02-12large scale fix for svn props after "the great refactor"Sean Dague1-10/+10
2009-02-12* optimized usings.lbsa711-14/+10
2009-02-10this is step 2 of 2 of the OpenSim.Region.Environment refactor.Dr Scofield1-1/+1
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