[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Weechat-dev] [task #12209] Generate alternative nicknames dynamically i
From: |
Sebastien Helleu |
Subject: |
[Weechat-dev] [task #12209] Generate alternative nicknames dynamically instead of disconnecting |
Date: |
Mon, 20 Aug 2012 05:48:40 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.79 Safari/537.1 |
URL:
<http://savannah.nongnu.org/task/?12209>
Summary: Generate alternative nicknames dynamically instead
of disconnecting
Project: WeeChat
Submitted by: None
Submitted on: lun. 20 août 2012 07:48:39 CEST
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Originator Name:
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
Release: None
IRC nick:
_______________________________________________________
Details:
When the list of configured nicknames is exhausted, generate new alternatives
based on the primary nickname. An algorithm based on irssi would work: keep
appending an underscore until the nickname is at least 9 characters long, then
truncate to 9 characters and overwrite a number at the end of the nickname.
e.g. irc.server_default.nicks = "abc,def,ghi,jkl"
Try:
abc
def
ghi
jkl
abc_
abc__
abc___
abc____
abc_____
abc______
abc_____1
abc_____2
...
abc____99
Reconnecting repeatedly just because there are no more nicknames to try isn't
appropriate behaviour.
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: jeu. 30 nov. 2006 14:58:42 CETBy: Juha Laukala <jhl>
-- code snippet from function.c:1475++
/* make sure that CreateProcess() has Path it needs */
sync_Path_environment();
if (!process_begin(hProcess, command_argv, envp, command_argv[0], NULL)) {
/* register process for wait */
The sync_Path_environment() sets PATH variable to environment, but the
process_begin() is called with previously stored envp, so the PATH is set
wrong for the first process_begin() call.
I would suggest moving the call to sync_Path_environment() before storing the
envp, see the patch attached.
Easy way to demonstrate the difference is following Makefile with native-win32
version:
export PATH=c:/tmp
$(warning $(shell path))
$(warning $(shell path))
(file #11414)
-------------------------------------------------------
Date: ven. 08 avril 2005 00:16:04 CESTBy: Paul D. Smith <psmith>
OK, I applied this patch.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: jeu. 30 nov. 2006 14:58:42 CET Name: make_w32_path_change_fix.txt
Size: 854 o By: jhl
<http://savannah.nongnu.org/bugs/download.php?file_id=11414>
-------------------------------------------------------
Date: ven. 04 mars 2005 12:31:35 CET Name: PATHvsPath-patch.txt Size: 2 ko
By: ale2003
Removal of the PATH vs Path feature
<http://savannah.nongnu.org/bugs/download.php?file_id=2661>
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/task/?12209>
_______________________________________________
Message posté via/par Savannah
http://savannah.nongnu.org/
- [Weechat-dev] [task #12209] Generate alternative nicknames dynamically instead of disconnecting,
Sebastien Helleu <=