projects
/
fms.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
version 0.2.5
[fms.git]
/
src
/
freenet
/
identityintroductionrequester.cpp
diff --git
a/src/freenet/identityintroductionrequester.cpp
b/src/freenet/identityintroductionrequester.cpp
index
80a27c2
..
0e5e3dd
100644
(file)
--- a/
src/freenet/identityintroductionrequester.cpp
+++ b/
src/freenet/identityintroductionrequester.cpp
@@
-82,9
+82,10
@@
const bool IdentityIntroductionRequester::HandleAllData(FCPMessage &message)
// we don't already know about this id - add it
\r
st.Finalize();
\r
date.SetToGMTime();
\r
// we don't already know about this id - add it
\r
st.Finalize();
\r
date.SetToGMTime();
\r
- st=m_db->Prepare("INSERT INTO tblIdentity(PublicKey,DateAdded
) VALUES(
?,?);");
\r
+ st=m_db->Prepare("INSERT INTO tblIdentity(PublicKey,DateAdded
,AddedMethod) VALUES(?,
?,?);");
\r
st.Bind(0,xml.GetIdentity());
\r
st.Bind(1,date.Format("%Y-%m-%d %H:%M:%S"));
\r
st.Bind(0,xml.GetIdentity());
\r
st.Bind(1,date.Format("%Y-%m-%d %H:%M:%S"));
\r
+ st.Bind(2,"solved captcha");
\r
st.Step();
\r
}
\r
st.Finalize();
\r
st.Step();
\r
}
\r
st.Finalize();
\r
@@
-243,7
+244,7
@@
void IdentityIntroductionRequester::Process()
// this will recheck for ids every minute
\r
DateTime now;
\r
now.SetToGMTime();
\r
// this will recheck for ids every minute
\r
DateTime now;
\r
now.SetToGMTime();
\r
- if(m_tempdate<(now-(1.0/1440.0)))
\r
+ if(m_
ids.size()==0 && m_
tempdate<(now-(1.0/1440.0)))
\r
{
\r
PopulateIDList();
\r
m_tempdate=now;
\r
{
\r
PopulateIDList();
\r
m_tempdate=now;
\r