src/DCC/DCC.cs
/// <summary>
/// Request a chat to a user.
/// </summary>
/// <param name="Nickname">The nick name of the user to chat request.</param>
/// <returns>A DCC chat.</returns>
Request a chat to a user.
Request a chat to a user .
public DCCChat RequestChat(string Nickname)
		{
			if (parent.Channels.IsOnChannel(Nickname))
				throw(new Exception("Cannot DCC request channels."));
			int Port = FreePort();
			DCCChat newChat = new DCCChat(base.CurrentConnection, Nickname, Port, chat);
			chat.AddDcc(newChat);
			base.CurrentConnection.SendData(String.Format("NOTICE {0} :DCC Chat ({1}){2}PRIVMSG {0} :\x01{5} CHAT chat {3} {4}\x01{2}",
                Nickname, 
                parent.LocalIP.ToString(), 
                Environment.NewLine, 
                IRCHost(parent.LocalIP.ToString()), 
                Port.ToString(), 
                "DCC"));
			return newChat;
		}
public DCCChat RequestChat ( string Nickname ) { if ( parent . Channels . IsOnChannel ( Nickname ) ) throw ( new Exception ( " " ) ) ; int Port = FreePort ( ) ; DCCChat newChat = new DCCChat ( base . CurrentConnection , Nickname , Port , chat ) ; chat . AddDcc ( newChat ) ; base . CurrentConnection . SendData ( String . Format ( " \x01 \x01 " , Nickname , parent . LocalIP . ToString ( ) , Environment . NewLine , IRCHost ( parent . LocalIP . ToString ( ) ) , Port . ToString ( ) , " " ) ) ; return newChat ; }
Request a chat to a user.
Request a chat to a user .
A DCC chat.
A DCC chat .
Nickname
string
The nick name of the user to chat request.
The nick name of the user to chat request .