Project

General

Profile

join.patch

Patch to solve this problem - lastik, 07/11/2009 10:44 PM

View differences:

src/core/userinputhandler.cpp
169 169
  QString sane_msg = msg;
170 170
  sane_msg.replace(QRegExp(", +"), ",");
171 171
  QStringList params = sane_msg.trimmed().split(" ");
172
  QStringList chans = params[0].split(",");
173
  QStringList keys;
172
  QStringList chans_dirty = params[0].split(",");
173
  QStringList chans;
174 174
  int i;
175
  for (i = 0; i < chans_dirty.count(); i++) {
176
    if (!chans_dirty.at(i).isEmpty())
177
      chans << chans_dirty.at(i);
178
  }
179
  QStringList keys;
175 180
  for(i = 0; i < chans.count(); i++) {
176 181
    if(!network()->isChannelName(chans[i]))
177 182
      chans[i].prepend('#');