mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-26 21:46:21 +00:00
Merge pull request #1972 from profanity-im/fix/1970-sub-req-block
Remove subscription when reporting spam/abuse
This commit is contained in:
@@ -3077,6 +3077,12 @@ cmd_blocked(ProfWin* window, const char* const command, gchar** args)
|
|||||||
if (!res) {
|
if (!res) {
|
||||||
cons_show("User %s already blocked.", args[1]);
|
cons_show("User %s already blocked.", args[1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// remove the subscription as well
|
||||||
|
if (presence_sub_request_exists(jid)) {
|
||||||
|
presence_subscription(jid, PRESENCE_UNSUBSCRIBED);
|
||||||
|
}
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user