🏡 index : ~doyle/titanirc.git

author Jordan Doyle <jordan@doyle.la> 2024-01-29 23:34:35.0 +00:00:00
committer Jordan Doyle <jordan@doyle.la> 2024-01-29 23:34:35.0 +00:00:00
commit
4b6dddf23b046df1d34193ab60b76770e1378f88 [patch]
tree
1228219b474d4e2eaae20f0b1972db4b1bbd9451
parent
722ae31a9122a6c6b260559ca3c3b65e45bec504
download
4b6dddf23b046df1d34193ab60b76770e1378f88.tar.gz

Remove unneeded user modes



Diff

 src/connection.rs | 16 ++--------------
 1 file changed, 2 insertions(+), 14 deletions(-)

diff --git a/src/connection.rs b/src/connection.rs
index e37fc9a..04e9190 100644
--- a/src/connection.rs
+++ b/src/connection.rs
@@ -279,22 +279,10 @@ bitflags! {

    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, Default)]
    pub struct UserMode: u32 {
        /// a - user is flagged as away
        const AWAY           = 0b0000_0000_0000_0000_0000_0000_0000_0001;
        /// i - marks a users as invisible
        const INVISIBLE      = 0b0000_0000_0000_0000_0000_0000_0000_0010;
        /// w - user receives wallops
        const WALLOPS        = 0b0000_0000_0000_0000_0000_0000_0000_0100;
        /// r - restricted user connection
        const RESTRICTED     = 0b0000_0000_0000_0000_0000_0000_0000_1000;
        const WALLOPS        = 0b0000_0000_0000_0000_0000_0000_0000_0001;
        /// o - operator flag
        const OPER           = 0b0000_0000_0000_0000_0000_0000_0001_0000;
        /// O - local operator flag
        const LOCAL_OPER     = 0b0000_0000_0000_0000_0000_0000_0010_0000;
        /// s - marks a user for receipt of server notices
        const SERVER_NOTICES = 0b0000_0000_0000_0000_0000_0000_0100_0000;
        /// x - masked hostname
        const MASKED_HOST    = 0b0000_0000_0000_0000_0000_0000_1000_0000;
        const OPER           = 0b0000_0000_0000_0000_0000_0000_0000_0010;
    }
}