From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Deniz Dogan Newsgroups: gmane.emacs.bugs Subject: bug#6795: rcirc: ERR_NICKNAMEINUSE causes infinite loop under certain circumstances Date: Wed, 4 Aug 2010 19:55:21 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1280945308 1735 80.91.229.12 (4 Aug 2010 18:08:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 4 Aug 2010 18:08:28 +0000 (UTC) To: 6795@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 04 20:08:27 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OgiO7-0002XG-Nx for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 Aug 2010 20:08:26 +0200 Original-Received: from localhost ([127.0.0.1]:39606 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OgiO4-0008AW-IK for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 Aug 2010 14:08:20 -0400 Original-Received: from [140.186.70.92] (port=36549 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OgiNt-00084v-O5 for bug-gnu-emacs@gnu.org; Wed, 04 Aug 2010 14:08:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OgiNs-0001Rx-Ao for bug-gnu-emacs@gnu.org; Wed, 04 Aug 2010 14:08:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59438) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OgiNs-0001Rt-9G for bug-gnu-emacs@gnu.org; Wed, 04 Aug 2010 14:08:08 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OgiC9-00020H-St; Wed, 04 Aug 2010 13:56:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Deniz Dogan Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 04 Aug 2010 17:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6795 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.12809445297689 (code B ref -1); Wed, 04 Aug 2010 17:56:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Aug 2010 17:55:29 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OgiBc-0001zy-Qf for submit@debbugs.gnu.org; Wed, 04 Aug 2010 13:55:29 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OgiBa-0001zt-FP for submit@debbugs.gnu.org; Wed, 04 Aug 2010 13:55:27 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:51766) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OgiC3-0006hX-Jq for submit@debbugs.gnu.org; Wed, 04 Aug 2010 13:55:55 -0400 Original-Received: from [140.186.70.92] (port=60851 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OgiC2-0005sC-62 for bug-gnu-emacs@gnu.org; Wed, 04 Aug 2010 13:55:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OgiC0-0007ml-Lv for bug-gnu-emacs@gnu.org; Wed, 04 Aug 2010 13:55:53 -0400 Original-Received: from mail-vw0-f41.google.com ([209.85.212.41]:52091) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OgiC0-0007mD-IL for bug-gnu-emacs@gnu.org; Wed, 04 Aug 2010 13:55:52 -0400 Original-Received: by vws16 with SMTP id 16so4975227vws.0 for ; Wed, 04 Aug 2010 10:55:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=rynyyRRgrY5/0Q1iBwbqJlb4DbndMtKanyXBnuvKC60=; b=SLih4kzTBKvio9peEbOSOqE7yacr5jlom1GnSdGxUO62kx8daYq7BOOGYCPkwPkCRt Mat6baZ121PMFu7pHI/UnOKzkBXFLxUBif0zYvRcAmOZPMBVG+Z484KMgbQbDo5cGme9 ywhYKEbedI1shlzDNqGY0iuFaUPWT/qFnaQ7s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=HxY16raa/2fnovHydA8u0dkGcn/E6PwkylD4rPCVbfUSpxdFUO84UqYjg5p44CkXrJ 9Ci3uPIZyS64TlrsV6juuu498Z2HICxed3kDCWsKMGSszKBYkDqlaKV2B4C/9D7EvzOO fvscMFgzv976ecj7TzRN/XdLAa/ImohAqsYG0= Original-Received: by 10.220.60.204 with SMTP id q12mr6441646vch.185.1280944551566; Wed, 04 Aug 2010 10:55:51 -0700 (PDT) Original-Received: by 10.220.193.135 with HTTP; Wed, 4 Aug 2010 10:55:21 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 04 Aug 2010 13:56:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:39236 Archived-At: Currently rcirc-handler-433 (ERR_NICKNAMEINUSE) tries to "uniquify" the nickname the user tried to use by appeding a ` to the requested nickname. However, if the length of the requested nickname is as long as or longer than the maximum allowed length on the server, the "uniquification" will not work resulting in an attempt to switch to the same nickname that caused the error in the first place: Example: /nick superlongnickname *** 433 superlongn Nickname is already in use. Here the IRC server truncates the requested nickname to "superlongn" which is already taken and then it tries to change to "superlongnickname`" which of course will also be truncated to "superlongn". Hence, something like this will be printed in the server buffer: *** 433 superlongn Nickname is already in use. *** 433 superlongn Nickname is already in use. *** 433 superlongn Nickname is already in use. *** 433 superlongn Nickname is already in use. ...and so on. The maximum nickname length of the server is received in a 005 message from the server when connecting. Example (NICKLEN=16): *** 005 SAFELIST ELIST=U CASEMAPPING=rfc1459 CHARSET=ascii NICKLEN=16 CHANNELLEN=50 TOPICLEN=390 ETRACE CPRIVMSG CNOTICE DEAF=D MONITOR=100 are supported by this server This information should ideally be stored as a buffer-local variable or maybe in some other fashion and then we should use this information to make better "uniquifications" of nicknames. -- Deniz Dogan