diff --git a/docs/conf/helpop.conf.example b/docs/conf/helpop.conf.example index e05da8cff..a61a02753 100644 --- a/docs/conf/helpop.conf.example +++ b/docs/conf/helpop.conf.example @@ -419,9 +419,11 @@ server. You should not use it during an established connection. "> - entries; - for (WhoWas::Nick::List::const_reverse_iterator i = list.rbegin(); i != list.rend(); ++i) + WhoWas::Nick::List::const_reverse_iterator last = list.rend(); + if (parameters.size() > 1) + { + size_t count = ConvToNum(parameters[1]); + if (count > 0 && (size_t) std::distance(list.rbegin(), last) > count) + last = list.rbegin() + count; + } + + for (WhoWas::Nick::List::const_reverse_iterator i = list.rbegin(); i != last; ++i) { WhoWas::Entry* u = *i;