Fix the notification action for PRIVMSG in erc-notifications-notify
* lisp/erc/erc-desktop-notifications.el (erc-notifications-notify): explicitly request the buffer for `nick', rather than relying on (current-buffer) returning it. That works fine for the very first PRIVMSG sent by `nick', but ERC seems to handle subsequent PRIVMSGs differently, where (current-buffer) would return the server buffer rather than the existing buffer for PRIVMSGs from `nick'.
This commit is contained in:
parent
36a4068105
commit
db4436eaf9
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@
|
||||||
This will replace the last notification sent with this function."
|
This will replace the last notification sent with this function."
|
||||||
(dbus-ignore-errors
|
(dbus-ignore-errors
|
||||||
(setq erc-notifications-last-notification
|
(setq erc-notifications-last-notification
|
||||||
(let ((channel (current-buffer)))
|
(let ((channel (erc-get-buffer nick)))
|
||||||
(notifications-notify :bus erc-notifications-bus
|
(notifications-notify :bus erc-notifications-bus
|
||||||
:title (format "%s in %s"
|
:title (format "%s in %s"
|
||||||
(xml-escape-string nick)
|
(xml-escape-string nick)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue