mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 20:55:43 +08:00
Massive tab and trailing space cleanup
This commit is contained in:
@@ -38,7 +38,7 @@ using OpenSim.Region.Framework.Scenes;
|
||||
namespace OpenSim.Region.OptionalModules.Avatar.Chat
|
||||
{
|
||||
|
||||
// An instance of this class exists for each unique combination of
|
||||
// An instance of this class exists for each unique combination of
|
||||
// IRC chat interface characteristics, as determined by the supplied
|
||||
// configuration file.
|
||||
|
||||
@@ -266,11 +266,11 @@ namespace OpenSim.Region.OptionalModules.Avatar.Chat
|
||||
ChannelState cs = p_cs;
|
||||
|
||||
// Check to see if we have an existing server/channel setup that can be used
|
||||
// In the absence of variable substitution this will always resolve to the
|
||||
// same ChannelState instance, and the table will only contains a single
|
||||
// entry, so the performance considerations for the existing behavior are
|
||||
// In the absence of variable substitution this will always resolve to the
|
||||
// same ChannelState instance, and the table will only contains a single
|
||||
// entry, so the performance considerations for the existing behavior are
|
||||
// zero. Only the IRC connector is shared, the ChannelState still contains
|
||||
// values that, while independent of the IRC connetion, do still distinguish
|
||||
// values that, while independent of the IRC connetion, do still distinguish
|
||||
// this region's behavior.
|
||||
|
||||
lock (IRCBridgeModule.m_channels)
|
||||
@@ -335,7 +335,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Chat
|
||||
|
||||
}
|
||||
|
||||
// These routines allow differentiating changes to
|
||||
// These routines allow differentiating changes to
|
||||
// the underlying channel state. If necessary, a
|
||||
// new channel state will be created.
|
||||
|
||||
@@ -426,7 +426,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Chat
|
||||
}
|
||||
|
||||
// This level of obsessive matching allows us to produce
|
||||
// a minimal overhead int he case of a server which does
|
||||
// a minimal overhead int he case of a server which does
|
||||
// need to differentiate IRC at a region level.
|
||||
|
||||
private bool IsAPerfectMatchFor(ChannelState cs)
|
||||
@@ -447,8 +447,8 @@ namespace OpenSim.Region.OptionalModules.Avatar.Chat
|
||||
);
|
||||
}
|
||||
|
||||
// This function implements the variable substitution mechanism
|
||||
// for the configuration values. Each string read from the
|
||||
// This function implements the variable substitution mechanism
|
||||
// for the configuration values. Each string read from the
|
||||
// configuration file is scanned for '[...]' enclosures. Each
|
||||
// one that is found is replaced by either a runtime variable
|
||||
// (%xxx) or an existing configuration key. When no further
|
||||
@@ -585,7 +585,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Chat
|
||||
|
||||
}
|
||||
|
||||
// This function is lifted from the IRCConnector because it
|
||||
// This function is lifted from the IRCConnector because it
|
||||
// contains information that is not differentiating from an
|
||||
// IRC point-of-view.
|
||||
|
||||
@@ -598,7 +598,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Chat
|
||||
{
|
||||
|
||||
// Scan through the set of unique channel configuration for those
|
||||
// that belong to this connector. And then forward the message to
|
||||
// that belong to this connector. And then forward the message to
|
||||
// all regions known to those channels.
|
||||
// Note that this code is responsible for completing some of the
|
||||
// settings for the inbound OSChatMessage
|
||||
|
||||
@@ -97,14 +97,14 @@ namespace OpenSim.Region.OptionalModules.Avatar.Chat
|
||||
|
||||
// How many regions depend upon this connection
|
||||
// This count is updated by the ChannelState object and reflects the sum
|
||||
// of the region clients associated with the set of associated channel
|
||||
// of the region clients associated with the set of associated channel
|
||||
// state instances. That's why it cannot be managed here.
|
||||
|
||||
internal int depends = 0;
|
||||
|
||||
// This variable counts the number of resets that have been performed
|
||||
// on the connector. When a listener thread terminates, it checks to
|
||||
// see of the reset count has changed before it schedules another
|
||||
// on the connector. When a listener thread terminates, it checks to
|
||||
// see of the reset count has changed before it schedules another
|
||||
// reset.
|
||||
|
||||
internal int m_resetk = 0;
|
||||
@@ -428,7 +428,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Chat
|
||||
public void PrivMsg(string pattern, string from, string region, string msg)
|
||||
{
|
||||
|
||||
// m_log.DebugFormat("[IRC-Connector-{0}] PrivMsg to IRC from {1}: <{2}>", idn, from,
|
||||
// m_log.DebugFormat("[IRC-Connector-{0}] PrivMsg to IRC from {1}: <{2}>", idn, from,
|
||||
// String.Format(pattern, m_ircChannel, from, region, msg));
|
||||
|
||||
// One message to the IRC server
|
||||
@@ -510,7 +510,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Chat
|
||||
c.Sender = null;
|
||||
c.SenderUUID = UUID.Zero;
|
||||
|
||||
// Is message "\001ACTION foo bar\001"?
|
||||
// Is message "\001ACTION foo bar\001"?
|
||||
// Then change to: "/me foo bar"
|
||||
|
||||
if ((1 == c.Message[0]) && c.Message.Substring(1).StartsWith("ACTION"))
|
||||
@@ -608,8 +608,8 @@ namespace OpenSim.Region.OptionalModules.Avatar.Chat
|
||||
string parms = String.Empty;
|
||||
|
||||
// ":" indicates that a prefix is present
|
||||
// There are NEVER more than 17 real
|
||||
// fields. A parameter that starts with
|
||||
// There are NEVER more than 17 real
|
||||
// fields. A parameter that starts with
|
||||
// ":" indicates that the remainder of the
|
||||
// line is a single parameter value.
|
||||
|
||||
@@ -873,7 +873,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Chat
|
||||
}
|
||||
|
||||
// Being marked connected is not enough to ping. Socket establishment can sometimes take a long
|
||||
// time, in which case the watch dog might try to ping the server before the socket has been
|
||||
// time, in which case the watch dog might try to ping the server before the socket has been
|
||||
// set up, with nasty side-effects.
|
||||
|
||||
else if (_pdk_ == 0)
|
||||
|
||||
@@ -414,7 +414,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Chat
|
||||
}
|
||||
}
|
||||
|
||||
// This method gives the region an opportunity to interfere with
|
||||
// This method gives the region an opportunity to interfere with
|
||||
// message delivery. For now we just enforce the enable/disable
|
||||
// flag.
|
||||
|
||||
@@ -428,7 +428,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Chat
|
||||
}
|
||||
}
|
||||
|
||||
// This supports any local message traffic that might be needed in
|
||||
// This supports any local message traffic that might be needed in
|
||||
// support of command processing. At present there is none.
|
||||
|
||||
internal void LocalChat(string msg)
|
||||
|
||||
Reference in New Issue
Block a user