🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #5438

Re: TIdIRC Access Violation

#5438
From: Remy Lebeau (TeamB)
Date: Thu, 09 Sep 2004 00:13
34 lines
2189 bytes
<Tog> wrote in message news:413f9bee@newsgroups.borland.com...
> Ok fair enough, let's assume it's NULL, well it is I guess.

Well, it is, or it isn't.  Did you actually check your code yet?

> But why then fire an event where I am suppose to announce
> a +op in a channel and I can't tell who's being +op'ed since
> ATarget->Nick has no value?

Well, if ATarget is NULL then you wouldn't know about the user to begin with
since the TIdIRCUser pointer is coming from the Users property.

> It's not like I manually run the event, TIdIRC decides that it
> must run this event based on the data received, how can it
> run this event without giving me data to work with?

Because the data is not available to begin with.

> Am I suppose to get ATarget->Nick from somewhere
> else in that particular case?

You could always re-write TIdIRC's source code to pass in the actual Nick
string instead of a TIdIRCUser* pointer.

> Is the event fired multiple times where AUser->Nick has a value and
ATarget->Nick sometimes doesn't?

OnOp is always triggered whenever an IRC command includes an "+" privledge
change.  Whether the target user is known or not at the time, the event is
still triggered.


Gambit
Technical Details
Message-ID: <413f9fcf$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!peer01.cox.net!cox.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <413f93a5$1@newsgroups.borland.com> <413f973c$1@newsgroups.borland.com> <413f9bee@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,d6069b12da25a878
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <413f93a5$1@newsgroups.borland.com> <413f973c$1@newsgroups.borland.com> <413f9bee@newsgroups.borland.com>
Subject: Re: TIdIRC Access Violation
Date: Wed, 8 Sep 2004 17:13:46 -0700
Lines: 36
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <413f9fcf$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1094688719 68.69.17.41 (8 Sep 2004 17:11:59 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!peer01.cox.net!cox.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail