mirror of
https://github.com/jeremyd/ergo.git
synced 2026-07-28 01:38:10 -07:00
away modes
This commit is contained in:
+4
-2
@@ -55,11 +55,13 @@ func (channel *Channel) Destroy() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (channel *Channel) Reply(reply Reply) error {
|
||||
func (channel *Channel) Reply(replies ...Reply) error {
|
||||
if channel.replies == nil {
|
||||
return ErrAlreadyDestroyed
|
||||
}
|
||||
channel.replies <- reply
|
||||
for _, reply := range replies {
|
||||
channel.replies <- reply
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user