From: Mario L. <ml...@ho...> - 2001-11-19 11:12:12
|
Adam Duck <du...@in...> writes: > Well, I was implementing an auto-join feature like this: > > (defun erc-channels-autojoin (proc parsed) > (let ((host (elt parsed 1)) > (nick (elt parsed 2)) > (ajl erc-autojoin:channels)) > ... > My list looks like this: > erc-autojoin:channels (list (list ".*\\.quakenet\\.org" "#spontanctf" "#toefte") > (list "tu-ilmenau\\.de" "#fastmp3.info")) > > Btw, I hooked this function to `erc-server-376-hook' "End of /MOTD". very well done. > > It works fine with "irc.de.quakenet.org" - where the mode-line states > the same as `erc-session-server' and the variable `host' I get by parsing > "parsed". > But there seems to be a problem with irc.tu-ilmenau.de: > here the mode-line says "irc.tu-ilmenau.de" and so does > erc-session-server; but I get "Tu-Ilmenau.DE" into the function > `erc-channels-autojoin'. It wouldn't be that bad if a user - i.e. me > - could see the server they are in to set `erc-autojoin:channels' but > all they can see is the mode-line string which does not match the > string I am given in the function. 1. the modeline contains always the same as erc-session-server, because it actually displays the value of that variable :) 2. question is, do we want to set erc-session-server to the name the server announces, or do we want to add an additional variable, erc-announced-server-name and use that in the modeline? (defun erc-server-004 (proc parsed) (let ((server-name (aref parsed 4))) ;; or 1, not sure whats better (setq erc-session-server server-name))) play with that if you like. > Can anyone help? > > Bye. Adam. > -- > Adam Duck (du...@cs...) > Bockenheimer Landstr. 135 / Zi. 211 > 60325 Frankfurt/Main > ______________________________________ > > Take my advice, I don't use it anyway. > > > _______________________________________________ > Erc-help mailing list > Erc...@li... > https://lists.sourceforge.net/lists/listinfo/erc-help > -- CYa, Mario <ml...@de...> Homepage(s): http://delysid.org | http://piss.at/ "When the going gets tough, the tough get empirical." -- Jon Carroll CYa, Mario <ml...@de...> Homepage(s): http://delysid.org | http://piss.at/ ma...@bd... (no longer valid - where are you now, Martin?) -- from /usr/src/linux/drivers/cdrom/mcd.c |