~emersion/soju

ef902fdc28a45072f48525fbf38659d45371603b — Simon Ser 6 months ago adb4b30
Panic on unknown user event type

This should never happen. Complain loudly if it does.
1 files changed, 1 insertions(+), 1 deletions(-)

M user.go
M user.go => user.go +1 -1
@@ 583,7 583,7 @@ func (u *user) run() {
			}
			return
		default:
			u.logger.Printf("received unknown event type: %T", e)
			panic(fmt.Sprintf("received unknown event type: %T", e))
		}
	}
}