summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--commands.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/commands.go b/commands.go
index 03e999a..7eeefcd 100644
--- a/commands.go
+++ b/commands.go
@@ -597,6 +597,9 @@ func commandDoSearch(app *App, args []string) (err error) {
if s == nil {
return errOffline
}
+ if !s.HasCapability("soju.im/search") {
+ return errors.New("server does not support searching")
+ }
s.Search(channel, text)
return nil
}