소스 검색

Only process drone flood if opped (#37)

Bryan Drewery 14 년 전
부모
커밋
2010c68e4a
1개의 변경된 파일과 3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      src/mod/irc.mod/irc.c

+ 3 - 0
src/mod/irc.mod/irc.c

@@ -161,6 +161,9 @@ void unlock_chan(struct chanset_t *chan)
 }
 
 void lockdown_chan(struct chanset_t* chan, flood_reason_t reason) {
+  if (!me_op(chan)) {
+    return;
+  }
   egg_timeval_t howlong;
 
   chan->channel.drone_set_mode = 0;