]> jfr.im git - irc/freenode/ircd-seven.git/commit
m_list: fail on invalid parameters
authorJanik Kleinhoff <redacted>
Mon, 9 Apr 2018 22:43:11 +0000 (22:43 +0000)
committerJanik Kleinhoff <redacted>
Fri, 13 Apr 2018 03:39:43 +0000 (03:39 +0000)
commit6ea60b2297948211925e22bd1f284179d680b4ae
treeeab203955996b7532975f2b03534432ad2484e69
parent5d99a312ac120f5fc822e39abe6d5897fbc2ab67
m_list: fail on invalid parameters

Commands such as "LIST channel" would formerly be interpreted
as an ELIST command without valid filters, i.e. the entire channel list
would be returned. This is usually not the desired behaviour.

Instead, return a start-of-list numeric, followed by a notice informing
the user their parameters were invalid and an end-of-list numeric.
This sort of mirrors the behaviour exhibited by an attempt to
/list #channel, where #channel does not exist.

Fixes #132.
modules/m_list.c