Hi,
sorry for the delay, I just looked at it, can't remember seeing this thread 
before.
Anyways, look at the diff for svn revision 8950. I didn't apply the patch 
directly. 
Few differences are :
1 - an event is posted for EVERY ft invite that is sent (which means the 
postevent must be 
in the foreach loop). So in case a user sends an invite from a multi-user chat, 
you'll get 
the postevent for each user the file is being sent to, not one for all of them.
2 - the event name is "sent_ft_invite" because we send (sent actually) an ft 
invite, not 
"sendfile" which would mean the ft completed, or we started sending or 
whatever...
3 - the chatid is passed in evPar, not the window_name.. because the window 
could be 
associated to the multi-user chat, not to the individual chat window that gets 
opened for 
each user, if you send to a multi-user chat.

so you need to change the event name in your plugin, and to make sure you get 
the chatid, 
and get the window name from the chatid, instead of using the window name of a 
'maybe' 
invalid window.

p.s.: I *think* ::ChatWindow::WinFor $chatid would give you the window.. not 
sure, search 
in chatwindow.tcl

KKRT

On Sat, Aug 11, 2007 at 12:29:21PM +0200, Thomas Geirhovd wrote:
> Has anyone looked at this? I need the patch accepted before i can post
> the plugin on the website...
> 
> On 7/28/07, MurDoK <[EMAIL PROTECTED]> wrote:
> > Hello.
> > As tg90nor requested me in the tracker, here I send the patch necessary.
> > The patch also contains a fix to close the configuration window of a
> > plugin when this plugin is unloaded. I needed it to test another plugin,
> > so feel free to comment it too.
> >
> >
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems?  Stop.
> > Now Search log events and configuration files using AJAX and a browser.
> > Download your FREE copy of Splunk now >>  http://get.splunk.com/
> > _______________________________________________
> > Amsn-devel mailing list
> > Amsn-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/amsn-devel
> >
> >
> >
> 
> 
> -- 
> Regards,
> Thomas Geirhovd
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> _______________________________________________
> Amsn-devel mailing list
> Amsn-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/amsn-devel

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel

Reply via email to