From: Francis L. <fr...@wo...> - 2002-12-14 01:07:03
|
ERC developers, The global value of variable last-peers is nil, but its buffer local value is initialized to '(nil . nil) in all ERC buffers by function erc. If (erc-chanlist) is building the channel list buffer when a PRIVMSG arrives, erc-server-PRIVMSG-or-NOTICE attempts to do: (setcar last-peers somenick) but last-peers refers to the global value because the erc-chanlist buffer is not built by function erc, causing a wrong-type-argument error. The below patch fixes the problem. -- Francis Litterio fr...@wo... http://world.std.com/~franl/ GPG and PGP public keys available on keyservers. --- erc.el 11 Dec 2002 22:40:32 -0000 1.359 +++ erc.el 14 Dec 2002 01:00:21 -0000 @@ -1343,7 +1343,7 @@ (defvar channel-user-limit nil "Limit of users per channel.") -(defvar last-peers nil +(defvar last-peers '(nil . nil) "Last peers used, both sender and receiver. Those are used for /MSG destination shortcuts.") |