Project

General

Profile

stop_core_crashing.diff

a1291762, 05/21/2010 04:01 AM

View differences:

src/core/ircserverhandler.cpp
583 583
  network()->setCurrentServer(prefix);
584 584

  
585 585
  if(params.isEmpty()) {
586
    emit displayMsg(Message::Error, BufferInfo::StatusBuffer, "", QString("%1 didn't supply a valid welcome message... expect some serious issues..."));
586
    emit displayMsg(Message::Error, BufferInfo::StatusBuffer, "", QString("%1 didn't supply a valid welcome message... expect some serious issues...").arg(prefix));
587
    network()->setMyNick("unknown");
588
    return;
587 589
  }
588 590
  // there should be only one param: "Welcome to the Internet Relay Network <nick>!<user>@<host>"
589 591
  QString param = serverDecode(params[0]);