From 1efbb15f239d7da32dadcc121a8b6db5061d297f Mon Sep 17 00:00:00 2001 From: Jeff Halter <868228+jhalter@users.noreply.github.com> Date: Sun, 5 May 2024 16:58:24 -0700 Subject: Fix handling of refuse PM flag --- hotline/transaction_handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hotline') diff --git a/hotline/transaction_handlers.go b/hotline/transaction_handlers.go index d86e928..1ef8ad3 100644 --- a/hotline/transaction_handlers.go +++ b/hotline/transaction_handlers.go @@ -337,7 +337,7 @@ func HandleSendInstantMsg(cc *ClientConn, t *Transaction) (res []Transaction, er // Check if target user has "Refuse private messages" flag flagBitmap := big.NewInt(int64(binary.BigEndian.Uint16(otherClient.Flags))) - if flagBitmap.Bit(UserFlagRefusePChat) == 1 { + if flagBitmap.Bit(UserFlagRefusePM) == 1 { res = append(res, *NewTransaction( TranServerMsg, -- cgit