chiark
/
gitweb
/
~mdw
/
profile
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9781db3
)
dot/ercrc.el: New IRC command `/GREET' to greet robots.
author
Mark Wooding
<mdw@distorted.org.uk>
Sun, 2 Sep 2012 14:30:58 +0000
(15:30 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sun, 2 Sep 2012 14:30:58 +0000
(15:30 +0100)
Useful if the robots weren't listening when we connected.
dot/ercrc.el
patch
|
blob
|
blame
|
history
diff --git
a/dot/ercrc.el
b/dot/ercrc.el
index 118a2cc87ac922ba828b3dc61f22b83a29bb11ec..55f67fbab75955a9832fb8ea15ef5833baa778fd 100644
(file)
--- a/
dot/ercrc.el
+++ b/
dot/ercrc.el
@@
-60,3
+60,7
@@
(defun mdw-erc-auto-greet-bots (server nick)
(message (caddr l)))
(erc-server-send (concat "PRIVMSG " bot " :" message))))))
(add-hook 'erc-after-connect 'mdw-erc-auto-greet-bots)
+
+(defun erc-cmd-GREET ()
+ "Send greeting messages, according to `mdw-erc-auto-greet-bots-alist'."
+ (mdw-erc-auto-greet-bots erc-session-server (erc-current-nick)))