diff options
author | Daniel Friesel <derf@finalrewind.org> | 2022-07-16 13:55:36 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2022-07-16 13:55:36 +0200 |
commit | ff290c78e01656e3991e13f4da614e4fab24da29 (patch) | |
tree | cee694a2a93ce77c794202708ec3ce40d3bcae0d /lib/Travelynx/Model/Users.pm | |
parent | 74123bbcc0aedb3e7dbc49a33fcba6a864b7e550 (diff) |
services: add marudor.de/regional
Diffstat (limited to 'lib/Travelynx/Model/Users.pm')
-rw-r--r-- | lib/Travelynx/Model/Users.pm | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/Travelynx/Model/Users.pm b/lib/Travelynx/Model/Users.pm index b0fdba0..b694ac3 100644 --- a/lib/Travelynx/Model/Users.pm +++ b/lib/Travelynx/Model/Users.pm @@ -12,9 +12,10 @@ use DateTime; my @sb_templates = ( undef, - [ 'DBF', 'https://dbf.finalrewind.org/{name}?show_realtime=1#{tt}{tn}' ], + [ 'DBF', 'https://dbf.finalrewind.org/{name}?show_realtime=1#{tt}{tn}' ], [ 'marudor.de', 'https://marudor.de/{name}' ], - [ 'NVM', 'https://nvm.finalrewind.org/board/{eva}' ], + [ 'NVM', 'https://nvm.finalrewind.org/board/{eva}#{tt}{tn}' ], + [ 'marudor.de/regional', 'https://marudor.de/regional/{name}' ], ); sub new { @@ -497,8 +498,8 @@ sub use_external_services { my $uid = $opt{uid}; my $value = $opt{set}; - if (defined $value) { - if ( $value < 0 or $value > 3 ) { + if ( defined $value ) { + if ( $value < 0 or $value > 4 ) { $value = 0; } $db->update( 'users', { external_services => $value }, { id => $uid } ); |