예제 #1
0
파일: Users.cs 프로젝트: krixalis/RohBot
 private static string GetRankString(Room room, string username)
 {
     if (Util.IsAdmin(room, username))
         return "Administrator";
     if (Util.IsMod(room, username))
         return "Moderator";
     if (room.IsBanned(username))
         return "Guest";
     return "Member";
 }
예제 #2
0
 public CommandTarget(Session session)
 {
     Room = Program.RoomManager.Get(session.Room);
     Session = session;
 }
예제 #3
0
 // For RohBot rooms
 public CommandTarget(Connection connection, string room)
 {
     Room = Program.RoomManager.Get(room);
     Connection = connection;
 }
예제 #4
0
 public CommandTarget(Room room, SteamID sender)
 {
     Room = room;
     SteamId = sender;
 }
예제 #5
0
 // For Steam rooms
 public CommandTarget(Room room, SteamPersona sender)
 {
     Room = room;
     Persona = sender;
 }