MCPcopy Create free account
hub / github.com/babycommando/nightride-cli / refreshChat

Method refreshChat

zuse.go:738–760  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

736}
737
738func (m *ircModel) refreshChat() {
739 if m.activeID == 0 {
740 return
741 }
742 s := m.servers[m.activeID]
743 if s == nil {
744 return
745 }
746 var logs []string
747 if s.channelLogs != nil {
748 logs = s.channelLogs[m.activeChan]
749 }
750 var b strings.Builder
751 w := m.chatVP.Width
752 if w <= 0 {
753 w = 80
754 }
755 for _, ln := range logs {
756 b.WriteString(wordwrap.String(ln, w) + "\n")
757 }
758 m.chatVP.SetContent(b.String())
759 m.chatVP.GotoBottom()
760}
761
762/* SLASH CMDS */
763

Callers 7

UpdateMethod · 0.95
applyChanLineMethod · 0.95
updateServersPaneMethod · 0.95
seedRektMethod · 0.95
injectASCIIArtMethod · 0.95
updateChatMethod · 0.95
handleSlashMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected