Esempio n. 1
0
 public BanCommand(string ServerName)
     : base(ServerName)
 {
     sBan = new Ban(ServerName);
     sUnban = new Unban(ServerName);
     _regex = new Regex(@"((?<year>[0-9]{4,4})(?:[\.\s]+|))?"                         // Year
                        + @"((?<month>[0-9]{1,2}|[a-zóüöúőűáéí]{3,20})(?:[\.\s]+|))?" // Month
                        + @"((?<day>[0-9]{1,2})(?:[\.\s]+|))?"                        // Day
                        + @"((?<hour>[0-9]{1,2})(?:[:]|))?"                           // Hour
                        + @"(?<minute>[0-9]{1,2})?"                                   // Minute
                        + @"((?:[\s]+)(?<text>(.*)))?", RegexOptions.Compiled | RegexOptions.IgnoreCase);
     _hamregex = new Regex(@"((?<hour>[0-9]{1,2})(?:[:]|))?"                          // Hour
                           + @"(?<minute>[0-9]{1,2})?"                                // Minute
                           + @"((?:[\s]+)(?<text>(.*)))?", RegexOptions.Compiled | RegexOptions.IgnoreCase);
 }
Esempio n. 2
0
 public Calendar(string ServerName)
 {
     _servername        = ServerName;
     sUnban             = new Unban(ServerName);
     sCalendarFunctions = new CalendarFunctions(ServerName);
 }
Esempio n. 3
0
 public Calendar(string ServerName)
 {
     _servername = ServerName;
     sUnban = new Unban(ServerName);
     sCalendarFunctions = new CalendarFunctions(ServerName);
 }