소스 검색

* Possible problem fixed

svn: 466
Bryan Drewery 22 년 전
부모
커밋
f90b061397
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/mod/irc.mod/irc.c

+ 1 - 1
src/mod/irc.mod/irc.c

@@ -479,8 +479,8 @@ static void request_op(struct chanset_t *chan)
   memberlist *botops[MAX_BOTS];
   char s[100], *l, myserv[SERVLEN];
   struct flag_record fr = { FR_GLOBAL | FR_CHAN | FR_ANYWH, 0, 0 };
-  
 Context;
+  if (!chan) return;
   if (channel_pending(chan) || !shouldjoin(chan) || !channel_active(chan))
     return;
   chan->channel.do_opreq = 0;