# HG changeset patch # User Kim Alvefur # Date 1453558596 -3600 # Node ID 87e58c58a08d8603bdce472f0ef42eb386f664e5 # Parent 2c49724e0cca57587cac2ee12fac68ebc8f7b246 plugins.ietf: Include a link in reply if an RFC number was given but no match found diff -r 2c49724e0cca -r 87e58c58a08d plugins/ietf.lua --- a/plugins/ietf.lua Tue Jan 12 22:28:31 2016 +0100 +++ b/plugins/ietf.lua Sat Jan 23 15:16:36 2016 +0100 @@ -99,6 +99,8 @@ match = match:gsub("%. ", ".\n", 1); -- Add a newline between title and authors if count > 1 then link = link .. " (" .. count .. " more matches)" end cb(match .. "\n" .. link); + elseif number then + cb("Sorry, no match, try " .. self.links:format(number)); else cb("Sorry, no match"); end