CModule::OnMode(): Fix a stupid NULL pointer dereference
CModule::OnMode(): Fix a stupid NULL pointer dereference

When joining a channel, OnMode() (via SetModes()) was called with pOpNick ==
NULL. This bad pointer was turned into a reference and given to modules.

This bug exists since 2008 when the OnMode() module call was added. It wasn't
noticed before because apparently no module used this CNick argument before.

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

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