Skip to content

Commit

Permalink
Have some notes of who requested which feature.
Browse files Browse the repository at this point in the history
For future reference and/or clean-up.
hoehermann committed Aug 25, 2024
1 parent 47cb45e commit e821414
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/c/commands.c
Original file line number Diff line number Diff line change
@@ -3,6 +3,8 @@

/*
* These functions implement some irc-style commands for advanced use in protocol bridges like Spectrum.
*
* This is a custom feature requested by https://github.com/theassemblerguy.
*/

static const char* command_string_presence = "?presence";
1 change: 1 addition & 0 deletions src/go/login.go
Original file line number Diff line number Diff line change
@@ -131,6 +131,7 @@ func login(account *PurpleAccount, purple_user_dir string, username string, cred
// where we cannot universally trust all local users.
// we must employ a mechanism that checks against some secret
// so it is not sufficient to know a person's device ID to hijack their account
// TODO: research if this is actually true. if not, then simplify the credential storage
// there is nothing special about the RegistrationID. any of the fields could be used.
if device.RegistrationID != registrationId {
purple_error(account, "Incorrect credentials.", ERROR_FATAL)
2 changes: 2 additions & 0 deletions src/go/send_message.go
Original file line number Diff line number Diff line change
@@ -156,6 +156,8 @@ func (handler *Handler) is_link_only_message(message string) bool {

/*
* Downloads a file given as a HTTP link. Sends it to the recipient as a media message.
*
* This is a custom feature requested by https://github.com/theassemblerguy.
*/
func (handler *Handler) send_link_message(recipient types.JID, isGroup bool, link string) bool {
resp, err := http.Get(link)

0 comments on commit e821414

Please sign in to comment.