Skip to content
This repository has been archived by the owner on Oct 27, 2018. It is now read-only.

Commit

Permalink
Make sure to return for not implemented functions in slack. Closes 42…
Browse files Browse the repository at this point in the history
  • Loading branch information
42wim committed Jun 11, 2018
1 parent f6d3dfc commit 4a1ccae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mmservice.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ func search(u *User, toUser *User, args []string, service string) {
func searchUsers(u *User, toUser *User, args []string, service string) {
if service == "slack" {
u.MsgUser(toUser, "not implemented")
return
}
users, resp := u.mc.Client.SearchUsers(&model.UserSearch{Term: strings.Join(args, " ")})
if resp.Error != nil {
Expand All @@ -203,6 +204,7 @@ func searchUsers(u *User, toUser *User, args []string, service string) {
func scrollback(u *User, toUser *User, args []string, service string) {
if service == "slack" {
u.MsgUser(toUser, "not implemented")
return
}
if len(args) != 2 {
u.MsgUser(toUser, "need SCROLLBACK <channel> <lines>")
Expand Down

0 comments on commit 4a1ccae

Please sign in to comment.