mercenary/mirc/src/mirc.cpp
Correl Roush 3dac90e658 Variables, GO!
Also, broke up the parser a bit to ease compilation


git-svn-id: file:///srv/svn/ircclient/trunk@3 a9804ffe-773b-11dd-bd7c-89c3ef1d2733
2008-08-31 17:00:39 +00:00

21 lines
No EOL
474 B
C++

#include "mirc.h"
MIRCScriptManager::MIRCScriptManager(QObject *parent) {
this->parent = parent;
}
bool MIRCScriptManager::hasVariable(QString variable) {
return _variables.contains(variable);
}
QString MIRCScriptManager::variable(QString variable) {
return _variables.value(variable);
}
void MIRCScriptManager::variable(QString variable, QString value) {
_variables[variable] = value;
}
QMap<QString, QString> MIRCScriptManager::variables() {
return _variables;
}