Merge pull request #11 from clean-cloogle/ctcp-ping
authordopefishh <mart@martlubbers.net>
Tue, 18 Jul 2017 12:28:58 +0000 (14:28 +0200)
committerGitHub <noreply@github.com>
Tue, 18 Jul 2017 12:28:58 +0000 (14:28 +0200)
Add CTCP ping

cloogleirc.icl

index 5d05563..980ea11 100644 (file)
@@ -174,6 +174,7 @@ Start w
                        | m.[0] == '!'
                                # (msgs, w) = realProcess (split " " $ m % (1, size m)) w
                                = (Just $ map reply msgs, w)
+                       | m % (0,4) == "\001PING" = (Just [reply m], w)
                        = (Just [], w)
                where
                        reply = case (\(CSepList [t:_]) -> t.[0]) t of