Remove superfluous test for current_window

It is always non-NULL, and we dereference it unconditionally anyway.
This commit is contained in:
Kevin Easton
2017-02-18 00:32:23 +11:00
parent 5574ff043b
commit 61ff399b3d

View File

@@ -4800,7 +4800,6 @@ ChannelList *chan = NULL;
if (!channel) {
if (flags != PC_SILENT) {
if (current_window)
message_to(current_window->refnum);
bitchsay("You're not on a channel!");
message_to(0);
@@ -4813,7 +4812,6 @@ ChannelList *chan = NULL;
if (!(chan = lookup_channel(channel, server, 0)))
{
if (flags != PC_SILENT) {
if (current_window)
message_to(current_window->refnum);
bitchsay("You're not on the channel: %s", channel);
message_to(0);