示例#1
0
 /// <summary>
 /// Client requested Client List
 /// </summary>
 /// <param name="me"></param>
 void c_ClientListRequest(ChatClient me)
 {
     Common.ChatClientListWrapper send = new Common.ChatClientListWrapper();
     send.List.AddRange(clients);
     me.SendClientList(send);
 }
示例#2
0
 /// <summary>
 /// Client requests ban-list
 /// </summary>
 /// <param name="me"></param>
 void c_BanListRequest(ChatClient me)
 {
     if (me.PermLevel < 2) {
         me.SendError("no permissions");
         return;
     }
     Common.ChatClientListWrapper send = new Common.ChatClientListWrapper();
     send.List.AddRange(bans);
     me.SendbanList(send);
 }