irc: remove "None" fake capability

This commit is contained in:
Nikita Vilunov 2024-06-05 03:05:54 +02:00
parent 25fe041698
commit 26cc2f178c
2 changed files with 1 additions and 2 deletions

View File

@ -3,7 +3,6 @@ use bitflags::bitflags;
bitflags! {
#[derive(Debug, Clone, Copy)]
pub struct Capabilities: u32 {
const None = 0;
const Sasl = 1 << 0;
const ServerTime = 1 << 1;
const ChatHistory = 1 << 2;

View File

@ -109,7 +109,7 @@ impl RegistrationState {
RegistrationState {
future_nickname: None,
future_username: None,
enabled_capabilities: Capabilities::None,
enabled_capabilities: Capabilities::empty(),
cap_negotiation_in_progress: false,
pass: None,
authentication_started: false,