3
0
mirror of https://github.com/ergochat/ergo.git synced 2025-03-04 13:30:51 +01:00
Matt Hamilton c67835ce5c
Gracefully handle NS cert add myself <fp> (#2128)
* Gracefully handle NS cert add myself <fp>

A non-operator with the nick "mynick" attempts to register
a fingerprint to their authenticated account.

They /msg NickServ cert add mynick <fingerprint>

NickServ responds with "Insufficient privileges" because
they've accidentally invoked the operator syntax (to action
other accounts).

This patch allows the user to add the fingerprint if the client's
account is identical to the target account.

Signed-off-by: Matt Hamilton <m@tthamilton.com>

* Update nickserv.go

Compare the case-normalized target to Account()

---------

Signed-off-by: Matt Hamilton <m@tthamilton.com>
Co-authored-by: Shivaram Lingamneni <slingamn@cs.stanford.edu>
2024-02-14 09:56:37 -05:00
..
2021-05-27 02:00:59 -04:00
2023-12-20 22:18:48 -05:00
2021-11-30 03:27:40 -05:00
2023-08-15 20:45:00 -04:00
2024-02-13 21:32:37 -05:00
2021-02-17 15:14:53 -05:00
2020-03-22 18:18:48 -04:00
2023-08-15 20:45:00 -04:00
2023-08-15 20:57:52 -04:00
2022-05-05 22:34:43 -04:00
2023-08-15 20:55:09 -04:00
2020-05-21 11:42:17 -04:00
2023-08-15 20:57:52 -04:00
2023-08-15 20:57:52 -04:00
2023-01-05 20:18:14 -05:00
2023-06-02 02:58:09 -04:00
2022-05-05 22:34:43 -04:00
2022-05-05 22:34:43 -04:00
2022-03-30 00:44:51 -04:00
2023-02-05 00:50:14 -05:00
2023-12-21 01:10:50 -05:00
2021-09-18 21:28:16 -04:00
2023-06-01 06:29:22 -04:00
2020-09-14 04:28:12 -04:00
2023-07-04 21:44:18 -04:00
2022-12-02 07:23:29 -05:00
2021-11-30 03:40:03 -05:00
2020-10-21 11:08:55 -04:00
2024-02-11 00:12:22 -05:00
2019-03-12 04:16:16 -04:00
2019-03-12 04:16:16 -04:00
2022-03-30 00:44:51 -04:00