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"; }
public CommandTarget(Session session) { Room = Program.RoomManager.Get(session.Room); Session = session; }
// For RohBot rooms public CommandTarget(Connection connection, string room) { Room = Program.RoomManager.Get(room); Connection = connection; }
public CommandTarget(Room room, SteamID sender) { Room = room; SteamId = sender; }
// For Steam rooms public CommandTarget(Room room, SteamPersona sender) { Room = room; Persona = sender; }