Fixed Bug #7167

a issue where sd->guild cache wasn't being assigned properly, which could cause the server to crash.
http://hercules.ws/board/tracker/issue-7167-ally-channel-autojoin/

Signed-off-by: shennetsind <ind@henn.et>