repositories
/
cloogle-irc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
a7d6a92
)
Merge pull request #11 from clean-cloogle/ctcp-ping
author
dopefishh
<mart@martlubbers.net>
Tue, 18 Jul 2017 12:28:58 +0000
(14:28 +0200)
committer
GitHub
<noreply@github.com>
Tue, 18 Jul 2017 12:28:58 +0000
(14:28 +0200)
Add CTCP ping
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