misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
evilsocket 2018-02-27 04:40:31 +01:00
commit 41d1f5a8a0

View file

@ -51,7 +51,7 @@ func NewEventsStream(s *session.Session) *EventsStream {
}))
stream.AddHandler(session.NewModuleHandler("events.waitfor TAG TIMEOUT?", `events.waitfor ([^\s]+)([\s\d]*)`,
"Show events stream.",
"Wait for an event with the given tag either forever or for a timeout in seconds.",
func(args []string) error {
tag := args[0]
timeout := 0