* Added Simulator property to ChatEventArgs

* IRCGateway: Fixed a parsing error in non rfc-complient IRC PRIVMSG messages

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3202 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
2009-11-02 02:25:34 +00:00
parent 73ab9427f1
commit a3f8809d2b
2 changed files with 7 additions and 3 deletions

View File

@@ -138,7 +138,7 @@ public class IRCClient
if (OnMessage != null)
{
int nameIndex = words[0].IndexOf('!');
string name = words[0].Substring(1, nameIndex - 1);
string name = nameIndex > 0 ? words[0].Substring(1, nameIndex - 1) : words[0];
string address = words[0].Substring(nameIndex + 1);
OnMessage(words[2], name, address, lines[i].Substring(lines[i].IndexOf(":", 1) + 1));
}