Ejemplo n.º 1
0
 /// <summary>
 ///     Access denied to command, decide what to do
 /// </summary>
 /// <returns>
 ///     A response to the command if access to the command was denied
 /// </returns>
 protected override CommandResponseHandler OnAccessDenied()
 {
     CommandResponseHandler crh =
         new Myaccess(this.Source, this.Channel, new string[0], this.CommandServiceHelper).RunCommand();
     return crh;
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Access denied to command, decide what to do
        /// </summary>
        /// <param name="source">The source of the command.</param>
        /// <param name="channel">The channel the command was triggered in.</param>
        /// <param name="args">The arguments to the command.</param>
        /// <returns>
        /// A response to the command if access to the command was denied
        /// </returns>
        protected override CommandResponseHandler accessDenied(User source, string channel, string[] args)
        {
            CommandResponseHandler crh = new Myaccess().run(source, channel, args);

            return(crh);
        }