* Stop the IRC module throwing a nre on shutdown if it isn't actually being used

0.6.0-stable
Justin Clarke Casey 2008-05-30 16:16:03 +00:00
parent ea4982e453
commit 6265ea371e
1 changed files with 5 additions and 2 deletions

View File

@ -150,8 +150,11 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Chat
public void Close() public void Close()
{ {
m_irc.Close(); if (null != m_irc)
m_log.Info("[IRC] closed connection to IRC server"); {
m_irc.Close();
m_log.Info("[IRC] closed connection to IRC server");
}
} }
public string Name public string Name