projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Show IRC server error messages when unexpected
[quassel.git]
/
src
/
core
/
eventstringifier.cpp
diff --git
a/src/core/eventstringifier.cpp
b/src/core/eventstringifier.cpp
index
943727c
..
66f0e27
100644
(file)
--- a/
src/core/eventstringifier.cpp
+++ b/
src/core/eventstringifier.cpp
@@
-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(" ")));