Open error bubbles for IRC numeric errors
This commit is contained in:
+4
-5
@@ -770,11 +770,6 @@ export default class App extends Component {
|
|||||||
return { who };
|
return { who };
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case "FAIL":
|
|
||||||
var description = msg.params[msg.params.length - 1];
|
|
||||||
this.setState({ error: description });
|
|
||||||
this.addMessage(netID, SERVER_BUFFER, msg);
|
|
||||||
break;
|
|
||||||
case "BOUNCER":
|
case "BOUNCER":
|
||||||
if (msg.params[0] !== "NETWORK") {
|
if (msg.params[0] !== "NETWORK") {
|
||||||
break; // We're only interested in network updates
|
break; // We're only interested in network updates
|
||||||
@@ -825,6 +820,10 @@ export default class App extends Component {
|
|||||||
// Ignore these
|
// Ignore these
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
if (irc.isError(msg.command) && msg.command != irc.ERR_NOMOTD) {
|
||||||
|
var description = msg.params[msg.params.length - 1];
|
||||||
|
this.setState({ error: description });
|
||||||
|
}
|
||||||
this.addMessage(netID, SERVER_BUFFER, msg);
|
this.addMessage(netID, SERVER_BUFFER, msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user