mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
don't overwrite base command
This commit is contained in:
parent
04f881a617
commit
55d3d6e946
3 changed files with 6 additions and 7 deletions
|
|
@ -202,9 +202,8 @@ func (m *JoinCommand) HandleServer(s *Server) {
|
|||
c := m.Client()
|
||||
|
||||
if m.zero {
|
||||
cmd := &PartCommand{
|
||||
BaseCommand: BaseCommand{c},
|
||||
}
|
||||
cmd := &PartCommand{}
|
||||
cmd.SetClient(c)
|
||||
for channel := range c.channels {
|
||||
channel.commands <- cmd
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue