/*private static Command CreateInstance() { * System.Reflection.ConstructorInfo ctor = typeof(Command).GetConstructor(Type.EmptyTypes); * return (Command)ctor.Invoke(new object[0]); * }*/ /// <summary> /// In the Constructor you deliver the alias names. Calling this ctor automatically sets /// the Instance to the newly invoked instance. /// </summary> protected Command(params string[] aliases) { m_enabled = true; m_requiredAccountLevel = AccountMgr.AccountLevel.Guest; Aliases = aliases; Usage = ""; Description = ""; }
/*private static Command CreateInstance() { System.Reflection.ConstructorInfo ctor = typeof(Command).GetConstructor(Type.EmptyTypes); return (Command)ctor.Invoke(new object[0]); }*/ /// <summary> /// In the Constructor you deliver the alias names. Calling this ctor automatically sets /// the Instance to the newly invoked instance. /// </summary> protected Command(params string[] aliases) { m_enabled = true; m_requiredAccountLevel = AccountMgr.AccountLevel.Guest; Aliases = aliases; Usage = ""; Description = ""; }
internal IrcUser(IrcClient irc) { m_isParsed = false; m_LoggedIn = false; m_AccountLevel = AccountMgr.AccountLevel.Guest; m_comChans = new Dictionary<string, IrcChannel>(StringComparer.InvariantCultureIgnoreCase); m_irc = irc; m_nick = "*"; m_UserName = "******"; m_host = "*"; }
public void SetAccountLevel(AccountMgr.AccountLevel level) { m_AccountLevel = level; }