~ubuntu-branches/ubuntu/saucy/quassel/saucy

« back to all changes in this revision

Viewing changes to src/common/network.cpp

  • Committer: Package Import Robot
  • Author(s): Scott Kitterman
  • Date: 2012-02-14 18:38:55 UTC
  • mfrom: (1.1.46)
  • Revision ID: package-import@ubuntu.com-20120214183855-ak8af7n6qweqy3f0
Tags: 0.8~beta1-0ubuntu1
* New upstream beta release
  - Update quasselcore man page for new oidentd option 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/***************************************************************************
2
 
 *   Copyright (C) 2005-2010 by the Quassel Project                        *
 
2
 *   Copyright (C) 2005-2012 by the Quassel Project                        *
3
3
 *   devel@quassel-irc.org                                                 *
4
4
 *                                                                         *
5
5
 *   This program is free software; you can redistribute it and/or modify  *
122
122
  if(info.rejoinChannels != rejoinChannels()) setRejoinChannels(info.rejoinChannels);
123
123
}
124
124
 
125
 
QString Network::prefixToMode(const QString &prefix) {
 
125
QString Network::prefixToMode(const QString &prefix) const {
126
126
  if(prefixes().contains(prefix))
127
127
    return QString(prefixModes()[prefixes().indexOf(prefix)]);
128
128
  else
129
129
    return QString();
130
130
}
131
131
 
132
 
QString Network::modeToPrefix(const QString &mode) {
 
132
QString Network::modeToPrefix(const QString &mode) const {
133
133
  if(prefixModes().contains(mode))
134
134
    return QString(prefixes()[prefixModes().indexOf(mode)]);
135
135
  else
146
146
  return nicks;
147
147
}
148
148
 
149
 
QString Network::prefixes() {
 
149
QString Network::prefixes() const {
150
150
  if(_prefixes.isNull())
151
151
    determinePrefixes();
152
152
 
153
153
  return _prefixes;
154
154
}
155
155
 
156
 
QString Network::prefixModes() {
 
156
QString Network::prefixModes() const {
157
157
  if(_prefixModes.isNull())
158
158
    determinePrefixes();
159
159
 
732
732
// ====================
733
733
//  Private:
734
734
// ====================
735
 
void Network::determinePrefixes() {
 
735
void Network::determinePrefixes() const {
736
736
  // seems like we have to construct them first
737
737
  QString prefix = support("PREFIX");
738
738