revert 5028, as this approach to 1 nick per avatar isn't going to work,
however, I think I understand now how to make it work. I just don't want to have this broken for people this weekend.0.6.0-stable
parent
2cfdfaeaa5
commit
6a66caa02e
|
@ -250,7 +250,6 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Chat
|
|||
m_log.DebugFormat("[IRC] {0} logging on", clientName);
|
||||
m_irc.PrivMsg(m_irc.Nick, "Sim",
|
||||
String.Format("notices {0} logging on", clientName));
|
||||
m_irc.NewUser(clientName);
|
||||
}
|
||||
m_last_new_user = clientName;
|
||||
}
|
||||
|
@ -288,7 +287,6 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Chat
|
|||
string clientName = String.Format("{0} {1}", presence.Firstname, presence.Lastname);
|
||||
m_log.DebugFormat("[IRC] noticing {0} in {1}", clientName, regionName);
|
||||
m_irc.PrivMsg(m_irc.Nick, "Sim", String.Format("notices {0} left {1}", clientName, regionName));
|
||||
m_irc.RemoveUser(clientName);
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
|
@ -484,8 +482,12 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Chat
|
|||
listener.Start();
|
||||
ThreadTracker.Add(listener);
|
||||
|
||||
NewUser(m_user);
|
||||
|
||||
m_writer.WriteLine(m_user);
|
||||
m_writer.Flush();
|
||||
m_writer.WriteLine(String.Format("NICK {0}", m_nick));
|
||||
m_writer.Flush();
|
||||
m_writer.WriteLine(String.Format("JOIN {0}", m_channel));
|
||||
m_writer.Flush();
|
||||
m_log.Info("[IRC]: Connection fully established");
|
||||
m_connected = true;
|
||||
}
|
||||
|
@ -498,21 +500,6 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Chat
|
|||
}
|
||||
}
|
||||
|
||||
public void NewUser(string nick)
|
||||
{
|
||||
m_writer.WriteLine(nick);
|
||||
m_writer.Flush();
|
||||
m_writer.WriteLine(String.Format("NICK {0}", m_nick));
|
||||
m_writer.Flush();
|
||||
m_writer.WriteLine(String.Format("JOIN {0}", m_channel));
|
||||
m_writer.Flush();
|
||||
}
|
||||
|
||||
public void RemoveUser(string nick)
|
||||
{
|
||||
m_writer.WriteLine(String.Format("QUIT :{0}", nick));
|
||||
}
|
||||
|
||||
public void Reconnect()
|
||||
{
|
||||
m_connected = false;
|
||||
|
|
Loading…
Reference in New Issue