Karl Pestka | 6 May 07:51

erc script echo in realtime? (Karl Pestka)

Is there a way to see the results of running a long text-file script  
in ERC in realtime?  In other words, can I see my script in the  
channel at the line-by-line speed it is sent, with erc-server-flood- 
penalty factored in?

Currently, ERC echoes the entire script the instant I run it, so that  
I don't know when it finishes.  I have to join the room on another  
nick to see the timed release of a script.

Thanks!
Karl
Timo Myyrä | 4 May 20:20

Can't join freenode servers with erc

As the title tells, I can't join freenode from ERC.

It gives me following error messsage:
[code]==> ERROR from orwell.freenode.net: Closing Link: 127.0.0.1
(Invalid username
    [n=timo.myy])

Connection failed!  Not re-establishing connection.

*** ERC terminated: connection broken by remote peer
[/code]

Connection to IRCnet works just fine and I can connect to freenode
with irssi so this is quite puzzling for me.
Also other freenode servers give the above message to me.
Manual connection to freenode gives same message as above too.

I'm using the erc version that comes with the latest pretest emacs (23.0.93).

Any ideas what could be causing this? I read the freenode FAQ but it
didn't give any insight to this.
It had small note that the server might be having difficulties but
that shouldn't be the case as irssi works just fine.

Here's my erc configuration:

;; --------------------------------
;; ERC configuration

; require lang options
(Continue reading)

Joseph LP | 3 May 09:34

SSL TLS certificates

Hello, I'm using latest cvs (GNU Emacs 23.0.93.1). I've noticed that ssl/tls
connections aren't possible with the default ( erc-open-ssl-stream ) defun,
which I have now successfully overridden with:
  (defun erc-open-ssl-stream (name buffer host port)                           
    "Open an SSL stream to an IRC server.                                        
     The process will be given the name NAME, its target buffer will be BUFFER.
HOST and PORT specify the connection target."                                  

  (when (require 'tls)                                                         
    (let ((proc (open-tls-stream name buffer host port)))                      
  proc)))

Additionally, gnutls-cli (via tls-program) is unable to take certificates as an
argument, whereas the older openssl s_client method can.

Please advise on how to pass gnutls-cli as tls-program for certificate use.
I've tried:
 "gnutls-cli --priority secure256 --x509cafile
/home/ootput/.private/cert/CAs.pem --x509certfile
/home/ootput/.private/certs/nick.pem -p %p %h"

Which works for most other irc clients.. but not ERC

Please advise

Regards,
Joe
Joseph LP | 3 May 08:17

ERC from emacs-cvs

Hello, I'm using latest cvs (GNU Emacs 23.0.93.1). I've noticed that ssl/tls
connections aren't possible with the default ( erc-open-ssl-stream ) defun,
which I have now successfully overridden with:
  (defun erc-open-ssl-stream (name buffer host port)                           

  "Open an SSL stream to an IRC server.                                        

The process will be given the name NAME, its target buffer will be BUFFER.  HOST
and PORT specify the connection target."                                        
  (when (require 'tls)                                                         

    (let ((proc (open-tls-stream name buffer host port)))                      

      proc)))

Additionally, gnutls-cli (via tls-program) is unable to take certificates as an
argument, whereas the older openssl s_client method can.

Please advise on how to pass gnutls-cli as tls-program for certificate use.
I've tried:
 "gnutls-cli --priority secure256 --x509cafile
/home/ootput/.private/cert/CAs.pem --x509certfile
/home/ootput/.private/certs/nick.pem -p %p %h"

Which works for most other irc clients.. but not ERC

Please advise

Regards,
Joe
(Continue reading)

Ludovic Courtès | 23 Apr 15:49

Invoking `erc-log-save-all-buffers' periodically

Hello,

I wanted to have something like that:

  ;; Save IRC logs periodically when we're idle.
  (run-with-idle-timer 180 t 'erc-log-save-all-buffers)

However, it turns out that `erc-current-logfile', called indirectly by
`erc-log-save-all-buffers', uses nil as the SERVER value, which makes
`erc-generate-log-file-name-long' return a bogus file name.

This is with ERC Version 5.3 (GNU Emacs 23.0.90.1).  Any idea?

Thanks,
Ludo'.
Karl Pestka | 15 Mar 16:21

/massidle: how to return idle times for all users in a channel?

Hello,

I'm trying to come up with an erc-cmd-MASSIDLE command, which returns  
idle times of all users in a channel that I operate, regardless of  
whether we're on the same server.  However, I'm quite new to elisp and  
need some advice.  I'm hampered by two difficulties:

1. /whois and /idle only take single nick arguments...

2. If the user is on another server, I have to run /whois nick nick to  
get their idle time, I can't use /idle.

I thought of adapting Sebastian Freundt's erc-cmd-MASSOP code, but  
because both /whois and /idle only take single nicks, the following  
doesn't work:

(defun erc-cmd-MASSIDLE (&rest ignore)
   (setq reason (mapconcat #'identity reason " "))
   (let ((hash-table erc-channel-users)
         users)
     (maphash (lambda (k v)
                (unless (equal k erc-nick)
                  (add-to-list 'users k)))
              hash-table)
     (eval `(erc-cmd-IDLE ,@users))))
I'm using ERC v5.3
and GNU Emacs 22.2.50.1 (powerpc-apple-darwin9.3.0, Carbon Version  
1.6.0) of 2008-07-17 on cf-ppc-macosx.usr.sourceforge.jp

What's the best way to /massidle a channel?
(Continue reading)

Tom Tromey | 10 Mar 17:10
Favicon

extreme erc slowness

I'm using ERC 5.2 on Emacs 22.

I've noticed a strange problem with ERC.  I connect to a server, and
ERC will try to join all my channels.  When I do this, ERC takes 100%
of the CPU.  Emacs becomes unresponsive -- occasionally I can C-g to
stop whatever it is doing, but this only works randomly.

Sometimes this problem lasts long enough for my other ERC connections
to time out.  So, these disconnect, then reconnect, prolonging the
problem.  Today this went through two rounds :-(

Any clues as to what this could be?  Or how I could track it down?

Tom
Alexis Hazell | 18 Feb 11:16

PRIVMSG notification duplication

Hi all,

i've written my own ERC notification funtion:

    (defun erc-my-notify (proc parsed)
        (setq info (aref parsed 2))
        (setq sender (match-string (string-match "^[^!]+" info) info))
        (setq current-conv (match-string (string-match "^[^@]+" (buffer-name)) (buffer-name)))
        (if (not (string= current-conv sender))
            (shell-command "zenity --info --text='PRIVMSG received'"))
        1)

and added it to erc-server-PRIVMSG-functions:

    (add-hook 'erc-server-PRIVMSG-functions 'erc-my-notify t)

However, for some reason it gets called twice on each PRIVMSG. Any
suggestions as to what i'm doing wrong?

Thanks in anticipation,

Alexis.
Giorgos Keramidas | 23 Jan 09:42
Favicon

semi-automatic region recoding?

Hi everyone,

I have configured Emacs and ERC to prefer utf-8 as the coding
system for most IRC channels, but there are a few channels where
both utf-8 and iso-8859-7 are used.

My current Emacs and ERC coding system setup is:

    (prefer-coding-system 'utf-8)
    (setq erc-server-coding-system (cons 'utf-8-unix 'utf-8-unix))

When someone writes in iso-8859-7 with my current setup, I see:

    \360\357\353\375 \341\361\343\374

If this was recoded from iso-8859-7 to utf-8, it would be:

    πολύ αργό

I think I've seen irssi automatically `guess' the coding system
of incoming text and recode it to the terminal locale.  Is
something like this possible with ERC too?

TIA,
Giorgos
Alan Boudreault | 18 Jan 17:04

ERC and Nickserv

Hi, 

i can't get working the ERC Nickserv and i don't understand why. Nothing is sent
to nickserv when i connect. Here's my configuration:

; ERC (extensible IRC client)
; Set used modules
(require 'erc)
(require 'erc-services)
(load "ercpass")
 '(erc-modules (quote (autojoin button completion fill irccontrols match menu
netsplit noncommands readonly ring scrolltobottom smiley stamp track services)))

(setq erc-services-mode 1)
(setq erc-autojoin-mode 0)
(setq erc-prompt-for-nickserv-password t 
      erc-user-full-name "gnunix"
      erc-email-userid "gnunix")
;(add-hook 'erc-server-NOTICE-functions 'send-post-cloak-autojoin)

(setq erc-nickserv-passwords
      `((freenode     (("ninix" . ,erc-nickserv-password-tmp)
                       ("s0nix" . ,erc-nickserv-password-tmp)))))

(defun erc-start()
  (interactive)
  (setq erc-autojoin-channels-alist
        (list (cons "freenode.net" erc-autojoin-channels-tmp)))
  (erc-select :server "irc.freenode.net" :port 6667 :nick erc-nickname-tmp))

(Continue reading)

ERC NickServ Ghost

How can i get ERC to ghost the nick and identify with nickserv if the
nick is taken when trying to connect?

Thank you

Gmane