aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules/Avatar/Chat/XIRCConnector.cs
diff options
context:
space:
mode:
authorDr Scofield2008-11-03 16:20:13 +0000
committerDr Scofield2008-11-03 16:20:13 +0000
commitd6d2a38e7634835ced32bba3629de41f4fd3cf9d (patch)
treea542fdff36e10c1598f3999aa0447db2b352836c /OpenSim/Region/Environment/Modules/Avatar/Chat/XIRCConnector.cs
parentThanks diva for a patch that removes an unnecessary dependency on Communicati... (diff)
downloadopensim-SC_OLD-d6d2a38e7634835ced32bba3629de41f4fd3cf9d.zip
opensim-SC_OLD-d6d2a38e7634835ced32bba3629de41f4fd3cf9d.tar.gz
opensim-SC_OLD-d6d2a38e7634835ced32bba3629de41f4fd3cf9d.tar.bz2
opensim-SC_OLD-d6d2a38e7634835ced32bba3629de41f4fd3cf9d.tar.xz
merging changes from IRCBridgeModule in to XIRCBridgeModule; swapping
OpenSim.ini config tags in preparation for merge of IRCBridgeModule and XIRCBridgeModule.
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/Modules/Avatar/Chat/XIRCConnector.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Modules/Avatar/Chat/XIRCConnector.cs b/OpenSim/Region/Environment/Modules/Avatar/Chat/XIRCConnector.cs
index b9203a8..f6a07b8 100644
--- a/OpenSim/Region/Environment/Modules/Avatar/Chat/XIRCConnector.cs
+++ b/OpenSim/Region/Environment/Modules/Avatar/Chat/XIRCConnector.cs
@@ -521,6 +521,9 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Chat
521 521
522 } 522 }
523 523
524 private Regex RE = new Regex(@":(?<nick>[\w-]*)!(?<user>\S*) PRIVMSG (?<channel>\S+) :(?<msg>.*)",
525 RegexOptions.Multiline);
526
524 private Dictionary<string, string> ExtractMsg(string input) 527 private Dictionary<string, string> ExtractMsg(string input)
525 { 528 {
526 //examines IRC commands and extracts any private messages 529 //examines IRC commands and extracts any private messages
@@ -529,8 +532,6 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Chat
529 // m_log.InfoFormat("[IRC-Connector-{0}]: ExtractMsg: {1}", idn, input); 532 // m_log.InfoFormat("[IRC-Connector-{0}]: ExtractMsg: {1}", idn, input);
530 533
531 Dictionary<string, string> result = null; 534 Dictionary<string, string> result = null;
532 string regex = @":(?<nick>[\w-]*)!(?<user>\S*) PRIVMSG (?<channel>\S+) :(?<msg>.*)";
533 Regex RE = new Regex(regex, RegexOptions.Multiline);
534 MatchCollection matches = RE.Matches(input); 535 MatchCollection matches = RE.Matches(input);
535 536
536 // Get some direct matches $1 $4 is a 537 // Get some direct matches $1 $4 is a