Пример #1
0
 internal void ChatRequestedNotify(DccChatArgs args)
 {
     if (ChatRequest != null)
     {
         ChatRequest(args);
     }
 }
Пример #2
0
 private void HandleChat(IrcUser user, string[] args)
 {
     try
     {
         long ip       = Convert.ToInt64(args[1]);
         int  port     = Convert.ToInt32(args[2]);
         var  endPoint = new IPEndPoint(Util.GetTcpAddress(ip), port);
         var  chatArgs = new DccChatArgs(user, endPoint);
         ChatRequestedNotify(chatArgs);
         if (chatArgs.Accept)
         {
             var client = new DccChatClient(this, user, endPoint);
         }
     }
     catch (Exception)
     {
         HandleInvalid(user, "CHAT", args);
     }
 }
Пример #3
0
 private void HandleChat(IrcUser user, string[] args)
 {
     try
     {
         long ip = Convert.ToInt64(args[1]);
         int port = Convert.ToInt32(args[2]);
         var endPoint = new IPEndPoint(Util.GetTcpAddress(ip), port);
         var chatArgs = new DccChatArgs(user, endPoint);
         ChatRequestedNotify(chatArgs);
         if (chatArgs.Accept)
         {
             var client = new DccChatClient(this, user, endPoint);
         }
     }
     catch (Exception)
     {
         HandleInvalid(user, "CHAT", args);
     }
 }
Пример #4
0
 internal void ChatRequestedNotify(DccChatArgs args)
 {
     if (ChatRequest != null)
         ChatRequest(args);
 }