SedRegex: reword "search not found" error

"Search not found in the last X *messages*" is a bit confusing because this is really counting the entire history, which includes all other lines of IRC communication (this means pings, /NAMES replies and so on).
This commit is contained in:
James Lu 2020-10-12 19:48:56 -07:00
parent 9adb4f0e8c
commit b05fe01d66

View File

@ -159,7 +159,7 @@ class SedRegex(callbacks.PluginRegexp):
except ProcessTimeoutError:
irc.error(_("Search timed out."))
except SearchNotFound:
irc.error(_("Search not found in the last %i messages.") %
irc.error(_("Search not found in the last %i IRC messages on this network.") %
len(irc.state.history))
except Exception as e:
self.log.warning(_("SedRegex replacer error: %s"), e, exc_info=True)