diff options
author | Runxi Yu <me@runxiyu.org> | 2024-12-12 06:44:47 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2024-12-12 06:44:47 +0800 |
commit | ebffb995c6581724b0b6760bf0c68f0f9d0c4160 (patch) | |
tree | aa9f232f988130a5d8dda9fc1fbd13cf8fc187a2 /servers.go | |
parent | CAP LS: Take version as integer (diff) | |
download | meseircd-ebffb995c6581724b0b6760bf0c68f0f9d0c4160.tar.gz meseircd-ebffb995c6581724b0b6760bf0c68f0f9d0c4160.tar.zst meseircd-ebffb995c6581724b0b6760bf0c68f0f9d0c4160.zip |
Use uint32 for SIDs, uint64 for CIDs
Diffstat (limited to '')
-rw-r--r-- | servers.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -7,7 +7,7 @@ import ( type Server struct { conn *net.Conn - SID string + SID uint32 Name string } @@ -38,8 +38,8 @@ func (server *Server) ClientSource() string { return server.Name } -func (server *Server) ServerSource() string { - return server.SID +func (server *Server) ServerSource() uint64 { + return uint64(server.SID) << 32 } var self *Server |