projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use correct nick on 001 RPL_WELCOME
[quassel.git]
/
src
/
core
/
coresessioneventprocessor.cpp
diff --git
a/src/core/coresessioneventprocessor.cpp
b/src/core/coresessioneventprocessor.cpp
index
80ea7d8
..
b33c4b0
100644
(file)
--- a/
src/core/coresessioneventprocessor.cpp
+++ b/
src/core/coresessioneventprocessor.cpp
@@
-1,5
+1,5
@@
/***************************************************************************
/***************************************************************************
- * Copyright (C) 2005-201
3
by the Quassel Project *
+ * Copyright (C) 2005-201
4
by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-477,14
+477,10
@@
void CoreSessionEventProcessor::processKeyEvent(KeyEvent *e)
/* RPL_WELCOME */
/* RPL_WELCOME */
-void CoreSessionEventProcessor::processIrcEvent001(IrcEvent *e)
+void CoreSessionEventProcessor::processIrcEvent001(IrcEvent
Numeric
*e)
{
{
- if (!checkParamCount(e, 1))
- return;
-
- QString myhostmask = e->params().at(0).section(' ', -1, -1);
e->network()->setCurrentServer(e->prefix());
e->network()->setCurrentServer(e->prefix());
- e->network()->setMyNick(
nickFromMask(myhostmask
));
+ e->network()->setMyNick(
e->target(
));
}
}
@@
-1016,7
+1012,7
@@
void CoreSessionEventProcessor::handleCtcpClientinfo(CtcpEvent *e)
void CoreSessionEventProcessor::handleCtcpPing(CtcpEvent *e)
{
void CoreSessionEventProcessor::handleCtcpPing(CtcpEvent *e)
{
- e->setReply(e->param());
+ e->setReply(e->param()
.isNull() ? "" : e->param()
);
}
}