public override Alienseed.BaseNetworkServer.Telnet.Prompts.BaseTextPrompt OnResponse(TelNetState client, string text, bool cancel) { if(cancel) return new MainMenu(client.User.IsAdmin); EventSink.OnChat(client, text); return this; }
public override BaseTextPrompt OnResponse(TelNetState client, string username, bool cancel) { if (!cancel && !string.IsNullOrWhiteSpace(username)) { return(new LoginPrompt2(username.Trim())); } return(this); }
public override BaseTextPrompt OnResponse(TelNetState client, string password, bool cancel) { if (!cancel && client.Notifier.Login(Username, password.Trim())) { client.Notifier.LoginSuccess(); return new MainMenu(client.User.IsAdmin); } else { client.Notifier.LoginFailed(); return new LoginPrompt(); } }
public override BaseTextPrompt OnResponse(TelNetState client, string password, bool cancel) { if (!cancel && client.Notifier.Login(Username, password.Trim())) { client.Notifier.LoginSuccess(); return(new MainMenu(client.User.IsAdmin)); } else { client.Notifier.LoginFailed(); return(new LoginPrompt()); } }
public abstract BaseTextPrompt OnResponse(TelNetState client, string text, bool cancel);
public override Alienseed.BaseNetworkServer.Telnet.Prompts.BaseTextPrompt OnResponse(TelNetState client, string text, bool cancel) { if (cancel) { return(new MainMenu(client.User.IsAdmin)); } EventSink.OnChat(client, text); return(this); }
public override BaseTextPrompt OnResponse(TelNetState client, string username, bool cancel) { if (!cancel && !string.IsNullOrWhiteSpace(username)) return new LoginPrompt2(username.Trim()); return this; }