Skip to content

Add 'history_delete' method to HistoryBackend#253

Merged
syzop merged 1 commit intounrealircd:unreal60_devfrom
progval:history_delete
Jun 17, 2023
Merged

Add 'history_delete' method to HistoryBackend#253
syzop merged 1 commit intounrealircd:unreal60_devfrom
progval:history_delete

Conversation

@progval
Copy link
Contributor

@progval progval commented Jun 4, 2023

This will allow modules to implement deletion of specific messages (unlike history_destroy, which removes the entire history of a channel)

For example, I wrote a third-party module for IRCv3 draft/message-redaction: https://github.com/progval/unrealircd-contrib/blob/redact/files/redact.c
I'll happily submit this module to Unreal itself if you're interested, after the spec stabilizes a bit.

This function offers nothing in Unreal itself; but I can write a stub module that allows opers to delete messages just as a demo, if you want some sort of built-in demo of the feature.

This will allow modules to implement deletion of specific messages
(unlike history_destroy, which removes the entire history of a channel)
@syzop
Copy link
Member

syzop commented Jun 4, 2023

Sure, this sounds fine. I will merge it after UnrealIRCd 6.1.1 is released.

@syzop syzop merged commit d5ceb66 into unrealircd:unreal60_dev Jun 17, 2023
@syzop
Copy link
Member

syzop commented Jun 17, 2023

I've merged the API call, thanks.

As for the module, maybe start with an unrealircd-contrib module first? Then others can play around with it easily as well just by running ./unrealircd module install third/nameofyourmodule. See https://www.unrealircd.org/docs/Rules_for_3rd_party_modules_in_unrealircd-contrib (nothing too scary)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants