예제 #1
0
        public bool HandleGroupMessage(IClient sender, string hash, string message)
        {
            if (this.GroupHash == null)
            {
                return(false);
            }

            if (!hash.Equals(this.GroupHash))
            {
                return(false);
            }

            if (message == null || message.Length == 0)
            {
                MessageBox.Show(sender.RealName + " has left the conversation.", "User disconnected", MessageBoxButtons.OK);
                Terminate();
            }

            control.ReceiveGroupMessage(sender, message);

            return(true);
        }
예제 #2
0
        public bool HandleGroupMessage(IClient sender, string hash, string message)
        {
            if (this.GroupHash == null)
            {
                return(false);
            }

            if (!hash.Equals(this.GroupHash))
            {
                return(false);
            }

            if (message == null || message.Length == 0)
            {
                MessageBox.Show(sender.Nickname + " HAS LEFT THE CONVERSATION", "USER DISCONNECTED", MessageBoxButtons.OK);
                Terminate();
            }

            control.ReceiveGroupMessage(sender, message);

            return(true);
        }