mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
apply OtakuMegane code changes to irc channel chat so some characters are not lost
This commit is contained in:
@@ -48,7 +48,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Chat
|
||||
private static readonly ILog m_log =
|
||||
LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
private static Regex arg = new Regex(@"\[[^\[\]]*\]");
|
||||
private static Regex arg = new Regex(@"(?<!\\)\[[^\[\]]*(?<!\\)\]");
|
||||
private static int _idk_ = 0;
|
||||
private static int DEBUG_CHANNEL = 2147483647;
|
||||
|
||||
@@ -499,6 +499,9 @@ namespace OpenSim.Region.OptionalModules.Avatar.Chat
|
||||
// m_log.DebugFormat("[IRC-Channel] Parse[2]: {0}", result);
|
||||
}
|
||||
|
||||
// Now we unescape the literal brackets
|
||||
result = result.Replace(@"\[","[").Replace(@"\]","]");
|
||||
|
||||
// m_log.DebugFormat("[IRC-Channel] Parse[3]: {0}", result);
|
||||
return result;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user