Commit Graph

62 Commits

Author SHA1 Message Date
Max Leiter
0f3880d037 Merge branch 'max/05-01-emoji' into max/next 2026-05-02 12:21:58 -07:00
Max Leiter
aa08e9c858 clean 2026-05-02 12:12:40 -07:00
Max Leiter
03ee145680 Emoji selector 2026-05-02 12:05:19 -07:00
Max Leiter
10b46607a8 Merge branch 'max/05-01-multiline' into max/next
# Conflicts:
#	package.json
#	server/client.ts
#	server/models/network.ts
#	server/plugins/inputs/msg.ts
#	server/plugins/irc-events/message.ts
#	server/plugins/irc-events/standard-reply.ts
#	server/types/modules/irc-framework.d.ts
#	shared/types/msg.ts
#	test/.mocharc.yml
2026-05-01 21:56:06 -07:00
Max Leiter
4546dcd473 ircv3: draft/multiline 2026-05-01 21:49:21 -07:00
Max Leiter
58496ea869 Merge branch 'max/04-09-monitor' into max/next
# Conflicts:
#	server/models/network.ts
#	server/plugins/irc-events/connection.ts
#	shared/types/network.ts
2026-04-25 15:14:35 -07:00
Max Leiter
1bee1ed77c respect network preferences 2026-04-25 15:11:24 -07:00
Max Leiter
109e4f38f7 revert the monitor revert, restoring all monitor/extended-monitor code 2026-04-15 10:22:38 -07:00
Max Leiter
a21690781d Revert "Merge #5045: ircv3: monitor and extended-monitor"
Causes excess flood on networks.
2026-04-14 11:08:45 -07:00
Max Leiter
1e0c022a4b Merge #5062: ircv3: add +reply support 2026-04-14 10:20:58 -07:00
Max Leiter
b58691ff36 Merge #5050: ircv3: +typing support 2026-04-14 10:17:11 -07:00
Max Leiter
825f2fb4dc Merge #5047: ircv3: support standard-replies 2026-04-14 10:16:53 -07:00
Max Leiter
76eaa80bef Merge #5045: ircv3: monitor and extended-monitor 2026-04-14 10:16:48 -07:00
Max Leiter
7f05256071 simplify 2026-04-13 15:30:24 -07:00
Max Leiter
c152b9d008 ircv3: add +reply support 2026-04-10 23:13:26 -07:00
Max Leiter
071ac36abd Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-04-10 09:39:00 -07:00
Max Leiter
c933a891ea unify types 2026-04-10 09:12:16 -07:00
Max Leiter
7fb8c27e28 format 2026-04-10 09:08:46 -07:00
Max Leiter
c99cb94d52 ircv3: +typing support 2026-04-10 09:02:39 -07:00
Max Leiter
79fa8d123e new message types 2026-04-10 00:34:04 -07:00
Max Leiter
c509b1a331 fixers 2026-04-10 00:18:19 -07:00
Max Leiter
4f9e8a2883 rm guardsg 2026-04-10 00:16:40 -07:00
Max Leiter
6be95003a6 Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-04-09 23:19:11 -07:00
Max Leiter
2098412321 channel:rename 2026-04-09 23:06:17 -07:00
Max Leiter
3e1fd81a00 CR 2026-04-09 23:03:51 -07:00
Max Leiter
de3d819058 shared user type 2026-04-09 22:27:53 -07:00
Max Leiter
6cb0ce4655 Merge remote-tracking branch 'origin/master' into max/04-09-bot-mode 2026-04-09 22:25:37 -07:00
Max Leiter
7adc428d01 ircv3: monitor and extended-monitor 2026-04-09 22:20:24 -07:00
Max Leiter
d9c8ddda9d isBot x3 2026-04-09 21:56:29 -07:00
Max Leiter
9f9b98bf0e ircv3: start storing/tracking msgid 2026-04-09 21:48:18 -07:00
Max Leiter
941a2d8ed8 ircv3: add bot mode support and [bot] userlist indicator 2026-04-09 21:42:12 -07:00
Reto Brunner
3f2697cca6 reverse locknetwork config selection
LockNetwork is documented as:
> When set to `true`, users will not be able to modify host, port and TLS
> settings and will be limited to the configured network.

Looking at the view, that also includes the name field (for some reason).

When leaveMessage was added to the defaults, the white list for the LockedConfigNetDefaults
wasn't adjusted.

Rather than playing whack a mole, disallow the documented fields + name and export the rest.

Fixes: https://github.com/thelounge/thelounge/issues/4956
2025-02-07 14:00:14 +01:00
Reto Brunner
3259ac596d client: fix all new linter errros 2024-05-04 12:29:57 +02:00
Reto Brunner
fc9805545b sharedMsg: remove userAway
userAway is purely server side and we don't send it to the client
2024-04-21 15:11:52 +02:00
Reto Brunner
e61e356f1e server: somewhat type fix auth related functions
The auth functions are a bloody mess and need to be cleaned up.
using various callback functions and using variables as pointers makes the logic
hard to follow and hence idiotic to type too, as multiple orthogonal logic paths
are mixed up into one function.

This really needs to be untangled
2024-04-21 15:11:52 +02:00
Reto Brunner
bb7c3925c6 type serverOptions for network:options 2024-04-21 15:11:52 +02:00
Reto Brunner
9c4d24d1f7 fix join socket type 2024-04-21 15:11:51 +02:00
Reto Brunner
bf7eb0e727 network event: remove unused array
All the network events only ever emit a single copy
There's no point in wrapping it into an array
2024-04-21 15:11:51 +02:00
Reto Brunner
98452ccc18 remove obsolete import 2024-04-21 15:11:51 +02:00
Reto Brunner
a8e7022d04 fix search event params 2024-04-21 15:11:51 +02:00
Reto Brunner
f5c691f37b wip: unbork init progress 2024-04-21 15:11:51 +02:00
Reto Brunner
0067c30273 Split sort event
The sort event bundled networks and channels for no reason at all.
They share none of the actual logic, so combining them just makes
the typing poor but serves no benefit.
2024-04-21 15:11:51 +02:00
Reto Brunner
e9ef59b641 fix bad typing
There were quite some errors, where the type was passed the wrong way
```
// This is invalid
"change-password": ({ old_password: string, new_password: string, verify_password: string})

// What was actually meant
"change-password": (data: { old_password: string, new_password: string, verify_password: string})
```

The whole callback function is also very verbose as is, with fluff we don't need.
It's always a function that returns void, so there's no real information to be gained
by spelling it out time and time again.

Let's use a helper type that just accepts the payload.
That should make the above error impossible to do.
2024-04-21 15:11:51 +02:00
Reto Brunner
fceffd42b9 fix missing import 2024-04-21 15:11:51 +02:00
Reto Brunner
c869ea9a73 sharedchans does not have users 2024-04-21 15:11:51 +02:00
Reto Brunner
e57e547b74 further chan fixes 2024-04-21 15:11:51 +02:00
Reto Brunner
3217536245 searchresponse 2024-04-21 15:11:51 +02:00
Reto Brunner
7073584f1c fix msg event 2024-04-21 15:11:51 +02:00
Reto Brunner
8e6920af1d configuration 2024-04-21 15:11:51 +02:00
Reto Brunner
7bc184b252 changelog data type 2024-04-21 15:11:51 +02:00