~ubuntu-branches/ubuntu/trusty/manaplus/trusty

« back to all changes in this revision

Viewing changes to src/commandhandler.cpp

  • Committer: Package Import Robot
  • Author(s): Patrick Matthäi
  • Date: 2013-10-07 10:26:14 UTC
  • mfrom: (1.1.11)
  • Revision ID: package-import@ubuntu.com-20131007102614-tg2zjdz8vmtl6n7i
Tags: 1.3.9.29-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
82
82
void CommandHandler::invokeCommand(const std::string &type,
83
83
                                   const std::string &args,
84
84
                                   ChatTab *const tab,
85
 
                                   const bool warn)
 
85
                                   const bool warn) const
86
86
{
87
87
    const CommandsMapIter it = mCommands.find(type);
88
88
    if (it != mCommands.end())
103
103
                              const std::string &args,
104
104
                              ChatTab *const tab)
105
105
{
106
 
    CommandFuncPtr func = info.func;
 
106
    const CommandFuncPtr func = info.func;
107
107
    if (func)
108
108
        func(args, tab);
109
109
    else