Remove superfluous test for current_window
It is always non-NULL, and we dereference it unconditionally anyway.
This commit is contained in:
@@ -4800,7 +4800,6 @@ ChannelList *chan = NULL;
|
|||||||
|
|
||||||
if (!channel) {
|
if (!channel) {
|
||||||
if (flags != PC_SILENT) {
|
if (flags != PC_SILENT) {
|
||||||
if (current_window)
|
|
||||||
message_to(current_window->refnum);
|
message_to(current_window->refnum);
|
||||||
bitchsay("You're not on a channel!");
|
bitchsay("You're not on a channel!");
|
||||||
message_to(0);
|
message_to(0);
|
||||||
@@ -4813,7 +4812,6 @@ ChannelList *chan = NULL;
|
|||||||
if (!(chan = lookup_channel(channel, server, 0)))
|
if (!(chan = lookup_channel(channel, server, 0)))
|
||||||
{
|
{
|
||||||
if (flags != PC_SILENT) {
|
if (flags != PC_SILENT) {
|
||||||
if (current_window)
|
|
||||||
message_to(current_window->refnum);
|
message_to(current_window->refnum);
|
||||||
bitchsay("You're not on the channel: %s", channel);
|
bitchsay("You're not on the channel: %s", channel);
|
||||||
message_to(0);
|
message_to(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user