Software / code / verse
Comparison
plugins/archive.lua @ 275:c077b20ad59f
plugins.archive: Add missing :up()
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Mon, 16 Jan 2012 22:58:50 +0100 |
| parent | 273:c5b7a4c717a6 |
| child | 291:b78137f5118e |
comparison
equal
deleted
inserted
replaced
| 274:a228f3c7808a | 275:c077b20ad59f |
|---|---|
| 10 local params = { "with", "start", "end" }; | 10 local params = { "with", "start", "end" }; |
| 11 local query_params = query_params or {}; | 11 local query_params = query_params or {}; |
| 12 for i=1,#params do | 12 for i=1,#params do |
| 13 local k = params[i]; | 13 local k = params[i]; |
| 14 if query_params[k] then | 14 if query_params[k] then |
| 15 query_st:tag(k):text(query_params[k]); | 15 query_st:tag(k):text(query_params[k]):up(); |
| 16 end | 16 end |
| 17 end | 17 end |
| 18 | 18 |
| 19 local results = {}; | 19 local results = {}; |
| 20 local function handle_archived_message(message) | 20 local function handle_archived_message(message) |