about summary refs log tree commit diff
path: root/app/lib
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-08-23 00:12:17 -0500
committermultiple creatures <dev@multiple-creature.party>2019-08-23 00:12:17 -0500
commit92c5f606d471c2b0bec497e074bcc83b7c922782 (patch)
treee8bcab4b076212907b80d89e7851895f23df1c20 /app/lib
parent8867fee609d2bfee7d1750337f43167de9ef9175 (diff)
don't fail on missing visibility parameter
Diffstat (limited to 'app/lib')
-rw-r--r--app/lib/bangtags.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/bangtags.rb b/app/lib/bangtags.rb
index 0029dced9..10076f074 100644
--- a/app/lib/bangtags.rb
+++ b/app/lib/bangtags.rb
@@ -614,7 +614,7 @@ class Bangtags
           else
             v = cmd[1].downcase
             status.visibility = visibilities[v] unless visibilities[v].nil?
-            case cmd[2].downcase
+            case cmd[2]&.downcase
             when 'federate', 'f', 'public', 'p', 'world'
               status.local_only = false
             when 'nofederate', 'nf', 'localonly', 'lo', 'local', 'l', 'monsterpit', 'm', 'community', 'c'