assert that we have a user/network on module calls
assert that we have a user/network on module calls

exoa found a bug where OnClientDisconnected() was called with m_pUser = NULL
when a client disconnected before logging in which blows up further down the
road.

This stuff should *never* be called with NULL pointers, despite the if which it
has. E.g. the above case skipped user modules, but global modules where still
called with a NULL pointer which they didn't expect nor handle for
OnClientDisconnected().

Signed-off-by: Uli Schlachter <346c0ad49ac8427b61b3b55abbe37dc0ebd524f2@znc.in>

Phansa/znc,TuffLuck/znc,Hasimir/znc,Adam-/znc,Adam-/znc,badloop/znc,jreese/znc,jpnurmi/znc,DarthGandalf/znc,badloop/znc,znc/znc,dgw/znc,anthonyryan1/znc,TuffLuck/znc,ollie27/znc,Phansa/znc,dgw/znc,jreese/znc,TuffLuck/znc,KielBNC/znc,Hasimir/znc,Zarthus/znc,jantman/znc,anthonyryan1/znc,aarondunlap/znc,trisk/znc,ollie27/znc,kashike/znc,KielBNC/znc,elyscape/znc,Mkaysi/znc,Hasimir/znc,markusj/znc,dgw/znc,elyscape/znc,znc/znc,Mkaysi/znc,jantman/znc,znc/znc,withinsoft/znc,TingPing/znc,dgw/znc,Adam-/znc,DarthGandalf/znc,Mkaysi/znc,KielBNC/znc,Adam-/znc,kashike/znc,TuffLuck/znc,jantman/znc,KiNgMaR/znc,YourBNC/znc,evilnet/znc,jpnurmi/znc,YourBNC/znc,Kriechi/nobnc,GLolol/znc,wolfy1339/znc,aarondunlap/znc,psychon/znc,jpnurmi/znc,reedloden/znc,Phansa/znc,Kriechi/nobnc,KiNgMaR/znc,withinsoft/znc,KiNgMaR/znc,dgw/znc,psychon/znc,badloop/znc,evilnet/znc,Adam-/znc,badloop/znc,elyscape/znc,trisk/znc,aarondunlap/znc,DarthGandalf/znc,Kriechi/znc,znc/znc,Hasimir/znc,markusj/znc,znc/znc,jantman/znc,jpnurmi/znc,anthonyryan1/znc,KielBNC/znc,aarondunlap/znc,badloop/znc,BtbN/znc,Mikaela/znc,anthonyryan1/znc,badloop/znc,jreese/znc,BtbN/znc,Mikaela/znc,markusj/znc,Zarthus/znc,ollie27/znc,elyscape/znc,Hasimir/znc,psychon/znc,evilnet/znc,trisk/znc,YourBNC/znc,KiNgMaR/znc,jreese/znc,psychon/znc,Zarthus/znc,znc/znc,KiNgMaR/znc,anthonyryan1/znc,jreese/znc,trisk/znc,YourBNC/znc,evilnet/znc,TuffLuck/znc,jpnurmi/znc,TingPing/znc,Zarthus/znc,KiNgMaR/znc,Phansa/znc,Mikaela/znc,kashike/znc,YourBNC/znc,aarondunlap/znc,ollie27/znc,aarondunlap/znc,psychon/znc,anthonyryan1/znc,psychon/znc,reedloden/znc,YourBNC/znc,jpnurmi/znc,Zarthus/znc,Kriechi/znc,reedloden/znc,Hasimir/znc,Kriechi/znc,Kriechi/znc,jpnurmi/znc,TingPing/znc,GLolol/znc,wolfy1339/znc,Mikaela/znc,withinsoft/znc,Phansa/znc,jreese/znc,GLolol/znc,Kriechi/znc,Mkaysi/znc,Mikaela/znc,kashike/znc,Zarthus/znc,reedloden/znc,TingPing/znc,withinsoft/znc,kashike/znc,elyscape/znc,TuffLuck/znc,wolfy1339/znc,TuffLuck/znc,wolfy1339/znc,kashike/znc,aarondunlap/znc,BtbN/znc,Mkaysi/znc,trisk/znc,jantman/znc,KielBNC/znc,GLolol/znc,Adam-/znc,Mikaela/znc,jantman/znc,ollie27/znc,Kriechi/nobnc,BtbN/znc,withinsoft/znc,trisk/znc,ollie27/znc,reedloden/znc,withinsoft/znc,Mikaela/znc,Phansa/znc,reedloden/znc,DarthGandalf/znc,wolfy1339/znc,TingPing/znc,Mkaysi/znc,anthonyryan1/znc,wolfy1339/znc,KielBNC/znc,DarthGandalf/znc,evilnet/znc,GLolol/znc,BtbN/znc,Adam-/znc,markusj/znc,markusj/znc,TingPing/znc,BtbN/znc,dgw/znc,GLolol/znc,evilnet/znc,markusj/znc,Mkaysi/znc,Kriechi/znc,elyscape/znc,Hasimir/znc,badloop/znc,DarthGandalf/znc