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); }
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); }