chiark / gitweb /
document nsfw support
authorMatthew Vernon <matthew@debian.org>
Fri, 1 Apr 2011 22:18:56 +0000 (23:18 +0100)
committerMatthew Vernon <matthew@debian.org>
Fri, 1 Apr 2011 22:18:56 +0000 (23:18 +0100)
commands.py
servus.html

index e6eb80cee6c728f2dbf19ab2e9a7cf04910be0ca..7b93d88da745021d28c96d0c58015632af2a5323 100644 (file)
@@ -332,7 +332,7 @@ urlcomplaints = ["a contemporary","an interesting","a fascinating","an overused"
 ### Deal with /msg bot url or ~url in channel
 def urlq(bot, cmd, nick, conn, public,urldb):
   if (not urlre.search(cmd)):
-    bot.automsg(False,nick,"Please use 'url' only with http or https URLs")
+    bot.automsg(False,nick,"Please use 'url' only with http, https, nsfw, or nsfws URLs")
     return
 
   urlstring=urlre.search(cmd).group(1)
index 43ed887b89a256881147bb7243bcbcdb8c413043..31db3155db31b6ccd79294177b6cd4ed143cc605 100644 (file)
@@ -227,7 +227,12 @@ your behalf). The syntax is:<br />
 Servus will either paste the URL into channel, or <span
 class="code">/msg</span> you to tell you it was a duplicate. Although
 you can use this command in-channel (and get a response by <span
-class="code">/msg </span>), this is discouraged.</p>
+class="code">/msg </span>), this is discouraged. Servus also
+understands <span class="code">nsfw://</span>
+and <span class="code">nsfws://</span> URLs, and knows they are an
+obfuscation of the relevant <span class="code">http://</span>
+or <span class="code">https://</span> URL for URLs that are not
+work-safe.</p>
 
 <hr />
 <address>