Bläddra i källkod

dictionary: Add a way to see all chatty responses

Will Storey 8 år sedan
förälder
incheckning
fd88a827bb
1 ändrade filer med 9 tillägg och 0 borttagningar
  1. 9 0
      dictionary.tcl

+ 9 - 0
dictionary.tcl

@@ -227,6 +227,15 @@ proc ::dictionary::publearn {nick host hand chan argv} {
     return
   }
 
+  if {[string tolower $rest] == "braindump"} {
+    set i 1
+    foreach response $::dictionary::chatty_responses {
+      puthelp "PRIVMSG $nick :$i. $response"
+      incr i
+    }
+    return
+  }
+
   set response [::dictionary::get_chatty_response $nick]
   putserv "PRIVMSG $chan :$response"
 }