it's in SVN btw... thanx mr nice guy ;)
On Tue, Dec 05, 2006 at 05:39:03PM +0100, NoWhereMan wrote: > Here it is.If file can't be sent through p2p, its URI will be just > pasted into the inputbox as requested here > http://www.amsn-project.net/forums/viewtopic.php?p=12624#12624 > > I'm such a nice guy ;) > > bye > > --NWM > Index: chatwindow.tcl > =================================================================== > --- chatwindow.tcl (revisione 7569) > +++ chatwindow.tcl (copia locale) > @@ -2098,9 +2098,12 @@ > } else { > > #TODO: improve this ??? > - #Filter out VFS-protocols > + #(VFS pseudo-)protocol: if we can't send it as a file > we just paste its URI > foreach type [list smb http https ftp sftp floppy cdrom > dvd] { > - if {[string first $type $data] == 0} { return } > + if {[string first $type $data] == 0} { > + [::ChatWindow::GetInputText $window] > insert insert $data > + return > + } > } > > #If the data begins with "file://", strip this off > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Amsn-devel mailing list > Amsn-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/amsn-devel ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Amsn-devel mailing list Amsn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amsn-devel