projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reject clients that attempt to login before the core is configured
[quassel.git]
/
src
/
core
/
eventstringifier.cpp
diff --git
a/src/core/eventstringifier.cpp
b/src/core/eventstringifier.cpp
index
943727c
..
724ad71
100644
(file)
--- a/
src/core/eventstringifier.cpp
+++ b/
src/core/eventstringifier.cpp
@@
-1,5
+1,5
@@
/***************************************************************************
/***************************************************************************
- * Copyright (C) 2005-201
5
by the Quassel Project *
+ * Copyright (C) 2005-201
8
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 *
@@
-342,6
+342,15
@@
void EventStringifier::processIrcEventTopic(IrcEvent *e)
.arg(e->nick(), e->params().at(0), e->params().at(1)), QString(), e->params().at(0));
}
.arg(e->nick(), e->params().at(0), e->params().at(1)), QString(), e->params().at(0));
}
+void EventStringifier::processIrcEventError(IrcEvent *e)
+{
+ // Need an error reason
+ if (!checkParamCount(e, 1))
+ return;
+
+ displayMsg(e, Message::Server, tr("Error from server: ") + e->params().join(""));
+}
+
void EventStringifier::processIrcEventWallops(IrcEvent *e)
{
displayMsg(e, Message::Server, tr("[Operwall] %1: %2").arg(e->nick(), e->params().join(" ")));
void EventStringifier::processIrcEventWallops(IrcEvent *e)
{
displayMsg(e, Message::Server, tr("[Operwall] %1: %2").arg(e->nick(), e->params().join(" ")));
@@
-522,10
+531,13
@@
void EventStringifier::processIrcEvent322(IrcEvent *e)
switch (e->params().count()) {
case 3:
topic = e->params()[2];
switch (e->params().count()) {
case 3:
topic = e->params()[2];
+ [[clang::fallthrough]];
case 2:
userCount = e->params()[1].toUInt();
case 2:
userCount = e->params()[1].toUInt();
+ [[clang::fallthrough]];
case 1:
channelName = e->params()[0];
case 1:
channelName = e->params()[0];
+ [[clang::fallthrough]];
default:
break;
}
default:
break;
}