Subversion Repositories tpanel

Rev

Rev 408 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 408 Rev 419
Line 1... Line 1...
1
/*
1
/*
2
 * Copyright (C) 2020 to 2022 by Andreas Theofilu <andreas@theosys.at>
2
 * Copyright (C) 2020 to 2023 by Andreas Theofilu <andreas@theosys.at>
3
 *
3
 *
4
 * This program is free software; you can redistribute it and/or modify
4
 * This program is free software; you can redistribute it and/or modify
5
 * it under the terms of the GNU General Public License as published by
5
 * it under the terms of the GNU General Public License as published by
6
 * the Free Software Foundation; either version 3 of the License, or
6
 * the Free Software Foundation; either version 3 of the License, or
7
 * (at your option) any later version.
7
 * (at your option) any later version.
Line 478... Line 478...
478
 
478
 
479
                if (cdef.hasChannels || cdef.hasPars)
479
                if (cdef.hasChannels || cdef.hasPars)
480
                {
480
                {
481
                    vector<string> parts = getFields(rest, cdef.separator);
481
                    vector<string> parts = getFields(rest, cdef.separator);
482
 
482
 
483
                    if (cdef.hasChannels)
483
                    if (cdef.hasChannels && !parts.empty())
484
                        extractChannels(parts[0], &iter->channels);
484
                        extractChannels(parts[0], &iter->channels);
-
 
485
                    else if (parts.empty())
-
 
486
                    {
-
 
487
                        MSG_WARNING("Malformed command " << scmd << ". Ignoring it!");
-
 
488
                        continue;
-
 
489
                    }
485
 
490
 
486
                    if (cdef.hasPars)
491
                    if (cdef.hasPars)
487
                    {
492
                    {
488
                        MSG_DEBUG("Command may have parameters. Found " << parts.size() << " parameters.");
493
                        MSG_DEBUG("Command may have parameters. Found " << parts.size() << " parameters.");
489
 
494