* 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:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user