repositories
/
cloogle-irc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5d6131
)
Add CTCP ping
author
Camil Staps
<info@camilstaps.nl>
Thu, 13 Jul 2017 13:44:37 +0000
(13:44 +0000)
committer
Camil Staps
<info@camilstaps.nl>
Thu, 13 Jul 2017 13:44:37 +0000
(13:44 +0000)
cloogleirc.icl
patch
|
blob
|
history
diff --git
a/cloogleirc.icl
b/cloogleirc.icl
index
5d05563
..
980ea11
100644
(file)
--- a/
cloogleirc.icl
+++ b/
cloogleirc.icl
@@
-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