mirror of https://github.com/fluffle/goirc
Run commands as a goroutine
This commit is contained in:
parent
e8eba53828
commit
8007846d51
|
@ -259,7 +259,7 @@ func (conn *Conn) dispatch(line *Line) {
|
|||
func (conn *Conn) command(line *Line) {
|
||||
command := conn.commands.match(strings.ToLower(line.Message()))
|
||||
if command != nil {
|
||||
command.Handle(conn, line)
|
||||
go command.Handle(conn, line)
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue