jumaris / indyproject

Automatically exported from code.google.com/p/indyproject
0 stars 0 forks source link

TIdIRC event parameters are being parsed wrong #248

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Based on the following RAW data:

001 Josef :Welcome to the irc.icq.com IRC Network Josef!BSIRC@84.62.134.209
002 Josef :Your host is irc-m01a.orange.icq.com, running version InspIRCd-2.0
003 Josef :This server was created 15:21:13 Feb 13 2013
004 Josef irc-m01a.orange.icq.com InspIRCd-2.0 BGHRSTWcdhikorswx 
ABCFGHIJKLMNOPQRSTXZabcdefghijklmnopqrstvyz FHIJLXZabdefghjkloqvy
005 Josef AWAYLEN=200 CASEMAPPING=rfc1459 
CHANMODES=IXZbeg,k,FHJLdfjl,ABCGKMNOPQRSTcimnprstz CHANNELLEN=64 CHANTYPES=# 
CHARSET=ascii ELIST=MU ESILENCE EXCEPTS=e EXTBAN=,ABCNOQRSTUcjmprsz FNC INVEX=I 
KICKLEN=255 :are supported by this server
005 Josef MAP MAXBANS=60 MAXCHANNELS=100 MAXPARA=32 MAXTARGETS=20 MODES=20 
NAMESX NETWORK=irc.icq.com NICKLEN=15 OPERLOG OVERRIDE PREFIX=(yqaohv)!~&@%+ 
SECURELIST :are supported by this server

The TIdIRC.OnMyInfo event is triggered with the following parameter values:

Server: Josef
Version: irc-m01a.orange.icq.com
UserModes: InspIRCd-2.0
ChannelModes: BGHRSTWcdhikorswx
Extras: ABCFGHIJKLMNOPQRSTXZabcdefghijklmnopqrstvyz FHIJLXZabdefghjkloqvy

The other events are similarly being parsed wrong.  The root issue is the 
server message's nickname value is not being parsed correctly before the 
parameters are then parsed.

Original issue reported on code.google.com by gambit47 on 21 Feb 2013 at 7:44