Example #1
0
        private static bool Prefix(ref string words, ref bool makeHold, ref bool makeNoise)
        {
            var ev = new SendingCassieMessageEventArgs(words, makeHold, makeNoise);

            Handlers.Cassie.OnSendingCassieMessage(ev);

            words     = ev.Words;
            makeHold  = ev.MakeHold;
            makeNoise = ev.MakeNoise;

            return(ev.IsAllowed);
        }
Example #2
0
 /// <summary>
 /// Called before sending a cassie message.
 /// </summary>
 /// <param name="ev">The <see cref="SendingCassieMessageEventArgs"/> instance.</param>
 public static void OnSendingCassieMessage(SendingCassieMessageEventArgs ev) => SendingCassieMessage.InvokeSafely(ev);