m_stats: don't ratelimit with no server argument
This commit is contained in:
parent
2f2a26fe9d
commit
e902e16974
1 changed files with 2 additions and 2 deletions
|
@ -212,7 +212,7 @@ m_stats(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_
|
||||||
|
|
||||||
statchar = parv[1][0];
|
statchar = parv[1][0];
|
||||||
|
|
||||||
if(MyClient(source_p) && !IsOper(source_p))
|
if(MyClient(source_p) && !IsOper(source_p) && parc > 2)
|
||||||
{
|
{
|
||||||
/* Check the user is actually allowed to do /stats, and isnt flooding */
|
/* Check the user is actually allowed to do /stats, and isnt flooding */
|
||||||
if((last_used + ConfigFileEntry.pace_wait) > rb_current_time())
|
if((last_used + ConfigFileEntry.pace_wait) > rb_current_time())
|
||||||
|
|
Loading…
Reference in a new issue