diff options
author | Adam <Adam@anope.org> | 2013-03-10 03:22:18 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-03-10 03:23:00 -0500 |
commit | 05223dbe6deee103b479f8b5e83a24d756edc511 (patch) | |
tree | 9e32d68e8c0018838a653e29b124eb30ef5efb24 /include/commands.h | |
parent | 06d43baf93dfbf95c829a5e61ae3b91904fbdd23 (diff) |
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
Diffstat (limited to 'include/commands.h')
-rw-r--r-- | include/commands.h | 2 |
1 files changed, 1 insertions, 1 deletions
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<User> u; public: /* The account executing the command */ Reference<NickCore> nc; |