فهرست منبع

* Add member->is_me to denote if this member is ME

Bryan Drewery 16 سال پیش
والد
کامیت
26f4436bdb
2فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 1 0
      src/chan.h
  2. 1 0
      src/mod/irc.mod/chan.c

+ 1 - 0
src/chan.h

@@ -21,6 +21,7 @@ typedef struct memstruct {
   char nick[NICKLEN];
   char userhost[UHOSTLEN];
   char userip[UHOSTLEN];
+  bool is_me;
 } memberlist;
 
 #define CHAN_FLAG_OP	1

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

@@ -2022,6 +2022,7 @@ static int got315(char *from, char *msg)
     putlog(LOG_MISC | LOG_JOIN, chan->dname, "Oops, I'm not really on %s.", chan->dname);
     force_join_chan(chan);
   } else {
+    me->is_me = 1;
     me->joined = now;				/* set this to keep the whining masses happy */
     if (me_op(chan))
       recheck_channel(chan, 2);