Use server buffer if name is unspecified in State.getBuffer

This commit is contained in:
Simon Ser 2021-06-10 09:25:17 +02:00
parent 41354d3035
commit 5fcbfa446c

View file

@ -187,6 +187,9 @@ export const State = {
if (!serverID) {
serverID = State.getActiveServerID(state);
}
if (!name) {
name = SERVER_BUFFER;
}
var cm = irc.CaseMapping.RFC1459;
var server = state.servers.get(serverID);