diff options
Diffstat (limited to 'examples/dhtd.hs')
-rw-r--r-- | examples/dhtd.hs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/dhtd.hs b/examples/dhtd.hs index ba7b0fca..27e3c4ef 100644 --- a/examples/dhtd.hs +++ b/examples/dhtd.hs | |||
@@ -719,14 +719,16 @@ clientSession s@Session{..} sock cnum h = do | |||
719 | hPutClient h $ showReport frs | 719 | hPutClient h $ showReport frs |
720 | 720 | ||
721 | ("quiet",s) | s' <- strp s | 721 | ("quiet",s) | s' <- strp s |
722 | , Just (tag::DebugTag) <- readMaybe ('X':s') | 722 | , Just (tag::DebugTag) <- readMaybe ('X':map toUpper (take 1 s') ++ drop 1 s') |
723 | -> cmd0 $ do | 723 | -> cmd0 $ do |
724 | setQuiet tag | 724 | setQuiet tag |
725 | hPutClient h $ "Suppressing " ++ show tag ++ " messages." | ||
725 | 726 | ||
726 | ("verbose",s) | s' <- strp s | 727 | ("verbose",s) | s' <- strp s |
727 | , Just (tag::DebugTag) <- readMaybe ('X':s') | 728 | , Just (tag::DebugTag) <- readMaybe ('X':map toUpper (take 1 s') ++ drop 1 s') |
728 | -> cmd0 $ do | 729 | -> cmd0 $ do |
729 | setVerbose tag | 730 | setVerbose tag |
731 | hPutClient h $ "Showing " ++ show tag ++ " messages." | ||
730 | 732 | ||
731 | -- list information about current netcrypto sesssions | 733 | -- list information about current netcrypto sesssions |
732 | ("sessions", s) | "" <- strp s | 734 | ("sessions", s) | "" <- strp s |