X-Git-Url: https://git.martlubbers.net/?p=cloogle-irc.git;a=blobdiff_plain;f=cloogleirc.icl;h=85985d84942663838511c7db7485a9cefcbf6f2e;hp=c9a464e0b307bdf8a09ecc7a0fde07af0d5555d9;hb=fb92f01e027cdbf5ef979c5d5525211594d8f7c7;hpb=f1a57a23147ae704503cca0053ec7bd371360948 diff --git a/cloogleirc.icl b/cloogleirc.icl index c9a464e..85985d8 100644 --- a/cloogleirc.icl +++ b/cloogleirc.icl @@ -177,7 +177,7 @@ Start w (Nothing, w) = (Nothing, io, w) (Just cs, w) # msgs = map toPrefix cs - #! (io, w) = foldr (log strf " (s): ") (io, w) msgs +// #! (io, w) = foldr (log strf " (s): ") (io, w) msgs = (Just msgs, io, w) log :: String String IRCMessage (!*File, !*World) -> (!*File, !*World) @@ -191,6 +191,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