aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAidan Gauland2013-02-12 23:02:11 -0500
committerStefan Monnier2013-02-12 23:02:11 -0500
commitd0009c7351874e853c63ce67cea6103f33afa60b (patch)
tree8d79ab6abf5383bca3d27749879fe5dbacaf6d7b
parent83be8524033be471a4e91e9753809f36fd6fe718 (diff)
downloademacs-d0009c7351874e853c63ce67cea6103f33afa60b.tar.gz
emacs-d0009c7351874e853c63ce67cea6103f33afa60b.zip
* lisp/erc/erc-match.el (erc-match-message): Fix last commit.
-rw-r--r--lisp/erc/ChangeLog4
-rw-r--r--lisp/erc/erc-match.el16
2 files changed, 12 insertions, 8 deletions
diff --git a/lisp/erc/ChangeLog b/lisp/erc/ChangeLog
index 3245c31384a..f3d54782897 100644
--- a/lisp/erc/ChangeLog
+++ b/lisp/erc/ChangeLog
@@ -1,3 +1,7 @@
12013-02-13 Aidan Gauland <aidalgol@no8wireless.co.nz>
2
3 * erc-match.el (erc-match-message): Fix last commit.
4
12013-02-12 Aidan Gauland <aidalgol@no8wireless.co.nz> 52013-02-12 Aidan Gauland <aidalgol@no8wireless.co.nz>
2 6
3 * erc-match.el (erc-match-message): 7 * erc-match.el (erc-match-message):
diff --git a/lisp/erc/erc-match.el b/lisp/erc/erc-match.el
index 1da838557f7..63683890226 100644
--- a/lisp/erc/erc-match.el
+++ b/lisp/erc/erc-match.el
@@ -447,7 +447,7 @@ Use this defun with `erc-insert-modify-hook'."
447 (nth 0 (erc-parse-user nickuserhost)))) 447 (nth 0 (erc-parse-user nickuserhost))))
448 (old-pt (point)) 448 (old-pt (point))
449 (nick-beg (and nickname 449 (nick-beg (and nickname
450 (re-search-forward "\\(\\* \\)?"(regexp-quote nickname) 450 (re-search-forward (regexp-quote nickname)
451 (point-max) t) 451 (point-max) t)
452 (match-beginning 0))) 452 (match-beginning 0)))
453 (nick-end (when nick-beg 453 (nick-end (when nick-beg
@@ -455,14 +455,14 @@ Use this defun with `erc-insert-modify-hook'."
455 (message (buffer-substring 455 (message (buffer-substring
456 (if (and nick-end 456 (if (and nick-end
457 (<= (+ 2 nick-end) (point-max))) 457 (<= (+ 2 nick-end) (point-max)))
458 ;; Message starts 2 characters after the nick
459 ;; except for CTCP ACTION messages. Nick
460 ;; surrounded by angle brackets only in normal
461 ;; messages.
458 (+ nick-end 462 (+ nick-end
459 ;; Message starts 2 characters after the nick except 463 (if (eq ?> (char-after nick-end))
460 ;; for CTCP ACTION messages. 464 2
461 (if (string= "* " 465 1))
462 (buffer-substring (- nick-beg 2)
463 nick-beg))
464 1
465 2))
466 (point-min)) 466 (point-min))
467 (point-max)))) 467 (point-max))))
468 (when (and vector 468 (when (and vector