Bug #254

avatar

Reconnect / exception if an user joins on an anonynous IRC channel

Added by Mirco Bauer 5447 days ago. Updated 5444 days ago.

Status:Closed Start:12/25/2009
Priority:High Due date:
Assigned to:avatarMirco Bauer % Done:

100%

Category:Other
Target version:0.8
Complexity:

Found in Version:

Votes: 0

Description

IRCnet supports an anonymous channel mode. This mode will make all people anonymous by replacing their real nickname, ident and host with fake ones. Sadly it replaces those with the same value for ALL channel users. This leads to an exception in the IRC library, like this:
2009-12-25 22:01:51,288 [IrcProtocolManager (irc.fu-berlin.de:6667) listener] DEBUG CHANNELSYNCING - anonymous joins channel: !5IHOLtest123
2009-12-25 22:01:51,289 [IrcProtocolManager (irc.fu-berlin.de:6667) listener] ERROR Smuxi.Engine.IrcProtocolManager - _Run(): exception in _Listen() occurred!
System.ArgumentException: Key duplication when adding: anonymous
  at System.Collections.Hashtable.PutImpl (System.Object key, System.Object value, Boolean overwrite) [0x00137] in /tmp/buildd/mono-2.4.3+dfsg/mcs/class/corlib/System.Collections/Hashtable.cs:823 
  at System.Collections.Hashtable.Add (System.Object key, System.Object value) [0x00000] in /tmp/buildd/mono-2.4.3+dfsg/mcs/class/corlib/System.Collections/Hashtable.cs:466 
  at System.Collections.Hashtable+SyncHashtable.Add (System.Object key, System.Object value) [0x00012] in /tmp/buildd/mono-2.4.3+dfsg/mcs/class/corlib/System.Collections/Hashtable.cs:1231 
  at Meebey.SmartIrc4net.IrcClient._Event_JOIN (Meebey.SmartIrc4net.IrcMessageData ircdata) [0x00000] 
  at Meebey.SmartIrc4net.IrcClient._HandleEvents (Meebey.SmartIrc4net.IrcMessageData ircdata) [0x00000] 
  at Meebey.SmartIrc4net.IrcClient._Worker (System.Object sender, Meebey.SmartIrc4net.ReadLineEventArgs e) [0x00000] 
  at (wrapper delegate-invoke) Meebey.SmartIrc4net.ReadLineEventHandler:invoke_void__this___object_ReadLineEventArgs (object,Meebey.SmartIrc4net.ReadLineEventArgs)
  at Meebey.SmartIrc4net.IrcConnection.ReadLine (Boolean blocking) [0x00000] 
  at Meebey.SmartIrc4net.IrcConnection.Listen (Boolean blocking) [0x00000] 
  at Meebey.SmartIrc4net.IrcConnection.Listen () [0x00000] 
  at Smuxi.Engine.IrcProtocolManager._Listen () [0x00000] in /home/meebey/data/projects/c-sharp/smuxi/git/src/Engine-IRC/Protocols/Irc/IrcProtocolManager.cs:1599 

As this exception in raised in the SmartIrc4net library, this bug / issue has to be handled in there.


Related issues

blocked by SmartIrc4net - Bug #255 Reconnect / exception if an user joins on an anonynous IRC channel Closed 12/25/2009

Associated revisions

Revision b989aec69943ec2c8455e3925e6f754e2b3b95d3
Added by Mirco Bauer 5444 days ago

Added a workaround for a thrown NullReferenceException when a persons joins or parts an IRC channel who does not exist. (closes: #254)

History

Updated by Mirco Bauer 5444 days ago

avatar

Regardless of the exception root, Smuxi needs to deal with this situation too, as it manages it's own person list.

Updated by Mirco Bauer 5444 days ago

avatar
  • Status changed from New to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF