private void InitClients()
{
IGroupsServiceConnector conn = Aurora.Framework.Utilities.DataManager.RequestPlugin<IGroupsServiceConnector>();
foreach(string s in m_config.GetKeys())
{
if(s.EndsWith("_Network"))
{
string networkvalue = m_config.GetString(s);
string channelvalue = m_config.GetString(s.Replace("_Network", "_Channel"));
string nickvalue = m_config.GetString(s.Replace("_Network", "_Nick"));
string gridName = m_config.GetString(s.Replace("_Network", "_GridName"), MainServer.Instance.ServerURI.Remove(0, 7));
GroupRecord g = conn.GetGroupRecord(UUID.Zero, UUID.Zero, s.Replace("_Network", "").Replace('_',' '));
if(g != null)
{
m_network[g.GroupID] = networkvalue;
m_channel[g.GroupID] = channelvalue;
m_gridName[g.GroupID] = gridName;
CreateIRCConnection(networkvalue, nickvalue, channelvalue, g.GroupID);
}
}
}
}