Skip to content

Commit

Permalink
Remove unnecessary conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
horgh committed Aug 18, 2018
1 parent d066174 commit 96821bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions local_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ func (s *LocalServer) uidCommand(m irc.Message) {
sid := TS6SID(m.Prefix)

// Do we know the server the message originates on?
usersServer, exists := s.Catbox.Servers[TS6SID(sid)]
usersServer, exists := s.Catbox.Servers[sid]
if !exists {
s.quit(fmt.Sprintf("UID message from unknown server %s", sid))
return
Expand Down Expand Up @@ -763,7 +763,7 @@ func (s *LocalServer) uidCommand(m irc.Message) {
u := &User{
DisplayNick: displayNick,
HopCount: int(hopCount),
NickTS: int64(nickTS),
NickTS: nickTS,
Modes: umodes,
Username: username,
Hostname: hostname,
Expand Down
2 changes: 1 addition & 1 deletion local_user.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ func (u *LocalUser) join(channelName string) {
// First build the portion that is common to every NAMREPLY so we can get
// its length.
namMessage := irc.Message{
Prefix: string(u.Catbox.Config.ServerName),
Prefix: u.Catbox.Config.ServerName,
Command: "353",
// Last parameter is where nicks go. We'll have " :" since it's blank
// right now (when we encode to determine base size).
Expand Down

0 comments on commit 96821bb

Please sign in to comment.