Exemple #1
0
 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());
     }
 }
Exemple #5
0
 public abstract BaseTextPrompt OnResponse(TelNetState client, string text, bool cancel);
Exemple #6
0
 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);
 }
Exemple #7
0
 public abstract BaseTextPrompt OnResponse(TelNetState client, string text, bool cancel);
 public override BaseTextPrompt OnResponse(TelNetState client, string username, bool cancel)
 {
     if (!cancel && !string.IsNullOrWhiteSpace(username))
     return new LoginPrompt2(username.Trim());
     return this;
 }