* IRC ChatModule extension should now be more stable.

afrisby
Adam Frisby 2007-10-19 23:56:51 +00:00
parent 4f1abe3e76
commit 2afecae39c
1 changed files with 16 additions and 5 deletions

View File

@ -189,6 +189,7 @@ namespace OpenSim.Region.Environment.Modules
} }
} }
} }
Thread.Sleep(50);
} }
} }
@ -246,9 +247,19 @@ namespace OpenSim.Region.Environment.Modules
if (connected) if (connected)
{ {
m_ircWriter.WriteLine("PRIVMSG " + m_channel + " :" + "<" + fromName + " in " + scene.RegionInfo.RegionName + ">: " + try
e.Message); {
m_ircWriter.Flush(); m_ircWriter.WriteLine("PRIVMSG " + m_channel + " :" + "<" + fromName + " in " + scene.RegionInfo.RegionName + ">: " +
e.Message);
m_ircWriter.Flush();
}
catch (IOException)
{
m_log.Error("IRC","Disconnected from IRC server.");
listener.Abort();
pingSender.Abort();
connected = false;
}
} }
if (e.Channel == 0) if (e.Channel == 0)