forked from jmug/stoatchat
Fix username block list.
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
#!/bin/bash
|
||||
export version=0.5.1-alpha.8
|
||||
export version=0.5.1-alpha.8-patch.0
|
||||
echo "pub const VERSION: &str = \"${version}\";" > src/version.rs
|
||||
|
||||
@@ -159,7 +159,7 @@ impl User {
|
||||
|
||||
/// Utility function for checking claimed usernames.
|
||||
pub async fn is_username_taken(username: &str) -> Result<bool> {
|
||||
if username.to_lowercase() == "revolt" && username.to_lowercase() == "admin" {
|
||||
if username.to_lowercase() == "revolt" || username.to_lowercase() == "admin" {
|
||||
return Ok(true);
|
||||
}
|
||||
|
||||
|
||||
@@ -18,8 +18,8 @@ pub enum ServerPermission {
|
||||
// 6 bits of space
|
||||
ChangeNickname = 0b00000000000000000001000000000000, // 4096
|
||||
ManageNicknames = 0b00000000000000000010000000000000, // 8192
|
||||
ChangeAvatar = 0b00000000000000000100000000000000, // 16392
|
||||
RemoveAvatars = 0b00000000000000001000000000000000, // 32784
|
||||
ChangeAvatar = 0b00000000000000000100000000000000, // 16382
|
||||
RemoveAvatars = 0b00000000000000001000000000000000, // 32768
|
||||
// 16 bits of space
|
||||
}
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
pub const VERSION: &str = "0.5.1-alpha.8";
|
||||
pub const VERSION: &str = "0.5.1-alpha.8-patch.0";
|
||||
|
||||
Reference in New Issue
Block a user