fCraft.Chat.SendInternal C# (CSharp) Method

SendInternal() private static method

private static SendInternal ( [ e ) : bool
e [
return bool
        private static bool SendInternal( [NotNull] ChatSendingEventArgs e ) {
            if ( e == null )
                throw new ArgumentNullException( "e" );
            if ( RaiseSendingEvent( e ) )
                return false;

            int recepients = e.RecepientList.Message( e.FormattedMessage );

            // Only increment the MessagesWritten count if someone other than
            // the player was on the recepient list.
            if ( recepients > 1 || ( recepients == 1 && e.RecepientList.First() != e.Player ) ) {
                e.Player.Info.ProcessMessageWritten();
            }

            RaiseSentEvent( e, recepients );
            return true;
        }