~gildarts

Indianapolis, IN

https://orbital.rocks

~gildarts/inspector

Last active 1 year, 10 months ago
View more

Recent activity

[PATCH] database: upgrade bcrypt cost as needed 2 days ago

From gildarts to ~emersion/soju-dev

Closes: https://todo.sr.ht/~emersion/soju/136
---
 database/database.go | 16 ++++++++++++++++
 downstream.go        |  6 ++++++
 2 files changed, 22 insertions(+)

diff --git a/database/database.go b/database/database.go
index 977d1b7..dd0d9bc 100644
--- a/database/database.go
+++ b/database/database.go
@@ -82,6 +82,22 @@ func (u *User) CheckPassword(password string) error {
		return fmt.Errorf("wrong password: %v", err)
	}

[message trimmed]

[PATCH v2] Add ability for a user to delete themselves 6 days ago

From gildarts to ~emersion/soju-dev

Adds user self delete
Adds confirmation of user deletion
---
 doc/soju.1.scd |  4 ++--
 service.go     | 36 +++++++++++++++++++++++++++++++-----
 2 files changed, 33 insertions(+), 7 deletions(-)

diff --git a/doc/soju.1.scd b/doc/soju.1.scd
index 4b7a7de..d6a9fec 100644
--- a/doc/soju.1.scd
+++ b/doc/soju.1.scd
@@ -432,8 +432,8 @@ abbreviated form, for instance *network* can be abbreviated as *net* or just
	- The _-realname_ flag is only valid when updating the current user.
	- The _-admin_ flag is only valid when updating another user.
[message trimmed]

Re: [RFC PATCH] Add ability for a user to delete themselves 6 days ago

From gildarts to ~emersion/soju-dev

On 2022-06-24 12:43 PM, Simon Ser wrote:
>> +
>> +		u.stop()
> We should first stop the user, then delete it from the DB. This ensures the user
> goroutine is no longer running, and won't try to insert data tied to the
> now-removed user in the DB.
> 

That was my plan originally, but we can't send a confirmation message to 
the person if we stop the user first. Maybe that is fine because they 
will figure it out when their connection times out or the service stops 
responding?

Fixing the other items now.

[PATCH v2] Add detach option to channel update 6 days ago

From gildarts to ~emersion/soju-dev

Add `-detached` to `channel update` command
---
Fixed double `-` in help text
Add guard for nil flag values

 service.go | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/service.go b/service.go
index feba0fa..57ca104 100644
--- a/service.go
+++ b/service.go
@@ -288,7 +288,7 @@ func init() {
					handle: handleServiceChannelStatus,
[message trimmed]

[RFC PATCH] Add ability for a user to delete themselves 7 days ago

From gildarts to ~emersion/soju-dev

Also adds confirmation of users deletion
---
 service.go | 40 ++++++++++++++++++++++++++++++++--------
 1 file changed, 32 insertions(+), 8 deletions(-)

diff --git a/service.go b/service.go
index feba0fa..0d5382c 100644
--- a/service.go
+++ b/service.go
@@ -273,10 +273,9 @@ func init() {
					handle: handleUserUpdate,
				},
				"delete": {
					usage:  "<username>",
[message trimmed]

[PATCH] Add detach option to channel update 8 days ago

From gildarts to ~emersion/soju-dev

Add `--detached` to `channel update` command
---
 service.go | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/service.go b/service.go
index feba0fa..e425f6c 100644
--- a/service.go
+++ b/service.go
@@ -288,7 +288,7 @@ func init() {
					handle: handleServiceChannelStatus,
				},
				"update": {
					usage:  "<name> [-relay-detached <default|none|highlight|message>] [-reattach-on <default|none|highlight|message>] [-detach-after <duration>] [-detach-on <default|none|highlight|message>]",
[message trimmed]

[PATCH] add migrate-db function 8 days ago

From gildarts to ~emersion/soju-dev

This utility will migrate data between any two soju databases.
Sqlite to postgres or postgres to sqlite.
---
 contrib/migrate-db/main.go | 163 +++++++++++++++++++++++++++++++++++++
 1 file changed, 163 insertions(+)
 create mode 100644 contrib/migrate-db/main.go

diff --git a/contrib/migrate-db/main.go b/contrib/migrate-db/main.go
new file mode 100644
index 0000000..05b5594
--- /dev/null
+++ b/contrib/migrate-db/main.go
@@ -0,0 +1,163 @@
package main
[message trimmed]

[PATCH v3] Demonstrate that I can use git send-email 8 days ago

From gildarts to ~sircmpwn/email-test-drive

---
 gildarts | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 gildarts

diff --git a/gildarts b/gildarts
new file mode 100644
index 0000000..66cb3d4
--- /dev/null
+++ b/gildarts
@@ -0,0 +1 @@
I have successfully used git send-email!
-- 
2.36.1.windows.1
[message trimmed]

[PATCH v2] Demonstrate that I can use git send-email 8 days ago

From gildarts to ~sircmpwn/email-test-drive

---
 gildarts | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 gildarts

diff --git a/gildarts b/gildarts
new file mode 100644
index 0000000..6d0ecfd
--- /dev/null
+++ b/gildarts
@@ -0,0 +1 @@
I'm about to try git send-email
-- 
2.36.1.windows.1
[message trimmed]

[PATCH] Demonstrate that I can use git send-email 8 days ago

From gildarts to ~sircmpwn/email-test-drive

---
 gildarts | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 gildarts

diff --git a/gildarts b/gildarts
new file mode 100644
index 0000000..6d0ecfd
--- /dev/null
+++ b/gildarts
@@ -0,0 +1 @@
I'm about to try git send-email
-- 
2.36.1.windows.1
[message trimmed]