New version of infobot.gib that supports factoid locking, and an

insignificant change to the GIB docs.
This commit is contained in:
Brian Koropoff 2003-04-11 02:36:10 +00:00
parent 21e0e342a0
commit 645b7ca3d6
2 changed files with 7 additions and 3 deletions

View file

@ -159,8 +159,12 @@ function infobot::forgetFactoid_f {
}
fact = $(infobot::makeKey $args[3])
if #{facts.$fact} {
delete facts.$fact
infobot::say $args[2], ": I forgot about ", $args[3], "."
if ${facts.${fact}[2]} {
infobot::say $args[2], ": That factoid is locked."
} else {
delete facts.$fact
infobot::say $args[2], ": I forgot about ", $args[3], "."
}
} else {
infobot::say $args[2], ": I don't know anything about ", $args[3], "."
}

View file

@ -1958,7 +1958,7 @@ Figure
break
\family default
and its output, while Figure
\begin_inset LatexCommand \vref{cap:continue}
\begin_inset LatexCommand \ref{cap:continue}
\end_inset