diff options
| author | 2005-04-09 13:46:42 +0000 | |
|---|---|---|
| committer | 2005-04-09 13:46:42 +0000 | |
| commit | 237766c84573c4a5439382fe6ba2afc026a18e09 (patch) | |
| tree | d79f214bfe5bee2a9576b912c228bae18bf5aa80 /src/commands.cpp | |
| parent | Fixed matching (diff) | |
| download | inspircd++-237766c84573c4a5439382fe6ba2afc026a18e09.tar.gz inspircd++-237766c84573c4a5439382fe6ba2afc026a18e09.tar.bz2 inspircd++-237766c84573c4a5439382fe6ba2afc026a18e09.zip | |
Added support for /NAMES with no parameters (just gives a hardcoded response anyway, who thinks up this shit)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1023 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/commands.cpp')
| -rw-r--r-- | src/commands.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/commands.cpp b/src/commands.cpp index edbff1272..e42bc2ade 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -570,6 +570,12 @@ void handle_names(char **parameters, int pcnt, userrec *user) { chanrec* c; + if (!pcnt) + { + WriteServ(user->fd,"366 %s * :End of /NAMES list.",user->nick); + return; + } + if (loop_call(handle_names,parameters,pcnt,user,0,pcnt-1,0)) return; c = FindChan(parameters[0]); |
