From 05223dbe6deee103b479f8b5e83a24d756edc511 Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 10 Mar 2013 03:22:18 -0500 Subject: [PATCH] Identify requests hold command sources and users can disconnect between the request being dispatched and when it returns, so don't assume the source user pointer is always valid --- include/commands.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/commands.h b/include/commands.h index 10ddeed2b..be800aa32 100644 --- a/include/commands.h +++ b/include/commands.h @@ -55,7 +55,7 @@ class CoreExport CommandSource /* The nick executing the command */ Anope::string nick; /* User executing the command, may be NULL */ - User *u; + Reference u; public: /* The account executing the command */ Reference nc;