summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/cs_info.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/cs_info.c b/src/core/cs_info.c
index b9498e3df..f4f2b5b17 100644
--- a/src/core/cs_info.c
+++ b/src/core/cs_info.c
@@ -44,7 +44,7 @@ class CommandCSInfo : public Command
ChannelInfo *ci;
char buf[BUFSIZE];
struct tm *tm;
- bool has_auspex = u->nc->HasPriv("chanserv/auspex");
+ bool has_auspex = u->nc && u->nc->HasPriv("chanserv/auspex");
int show_all = 0;
time_t expt;