aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/stanza.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/stanza.lua b/util/stanza.lua
index 3d4e9e5a..8ec49a39 100644
--- a/util/stanza.lua
+++ b/util/stanza.lua
@@ -136,6 +136,10 @@ function stanza_mt:up()
return self;
end
+function stanza_mt:at_top()
+ return self.last_add == nil or #self.last_add == 0
+end
+
function stanza_mt:reset()
self.last_add = nil;
return self;