Handle RPL_NOTOPIC
This commit is contained in:
parent
aaa33d7f36
commit
0157dd4cc6
2 changed files with 6 additions and 0 deletions
|
@ -377,6 +377,11 @@ export default class App extends Component {
|
||||||
};
|
};
|
||||||
this.setBufferState(SERVER_BUFFER, { serverInfo });
|
this.setBufferState(SERVER_BUFFER, { serverInfo });
|
||||||
break;
|
break;
|
||||||
|
case irc.RPL_NOTOPIC:
|
||||||
|
var channel = msg.params[1];
|
||||||
|
|
||||||
|
this.setBufferState(channel, { topic: null });
|
||||||
|
break;
|
||||||
case irc.RPL_TOPIC:
|
case irc.RPL_TOPIC:
|
||||||
var channel = msg.params[1];
|
var channel = msg.params[1];
|
||||||
var topic = msg.params[2];
|
var topic = msg.params[2];
|
||||||
|
|
|
@ -3,6 +3,7 @@ export const RPL_YOURHOST = "002";
|
||||||
export const RPL_CREATED = "003";
|
export const RPL_CREATED = "003";
|
||||||
export const RPL_MYINFO = "004";
|
export const RPL_MYINFO = "004";
|
||||||
export const RPL_ENDOFWHO = "315";
|
export const RPL_ENDOFWHO = "315";
|
||||||
|
export const RPL_NOTOPIC = "331";
|
||||||
export const RPL_TOPIC = "332";
|
export const RPL_TOPIC = "332";
|
||||||
export const RPL_WHOREPLY = "352";
|
export const RPL_WHOREPLY = "352";
|
||||||
export const RPL_NAMREPLY = "353";
|
export const RPL_NAMREPLY = "353";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue