stupid chanadmin /names and /who bug
This commit is contained in:
parent
5b34736288
commit
c47b8b5f51
4 changed files with 11 additions and 13 deletions
|
@ -51,3 +51,4 @@ Symbols are:
|
|||
(F) - Ungline is now global
|
||||
(F) - Added SWHOIS to whois. Opers and servers can set swhois
|
||||
(F) - Fixed a hook api issue with hooks not getting added correctly (Patch sent to hybird team)
|
||||
(F) - Fixed a chanadmin bug that eggy found (Duh), Stupid Bug
|
|
@ -19,7 +19,7 @@
|
|||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
* USA
|
||||
*
|
||||
* $Id: m_who.c,v 1.8 2002/09/13 16:30:04 fishwaldo Exp $
|
||||
* $Id: m_who.c,v 1.9 2002/09/14 17:03:00 fishwaldo Exp $
|
||||
*/
|
||||
#include "stdinc.h"
|
||||
#include "tools.h"
|
||||
|
@ -60,7 +60,7 @@ _moddeinit(void)
|
|||
{
|
||||
mod_del_cmd(&who_msgtab);
|
||||
}
|
||||
const char *_version = "$Revision: 1.8 $";
|
||||
const char *_version = "$Revision: 1.9 $";
|
||||
#endif
|
||||
static void do_who_on_channel(struct Client *source_p,
|
||||
struct Channel *chptr, char *real_name,
|
||||
|
@ -207,7 +207,7 @@ static void m_who(struct Client *client_p,
|
|||
else if(is_voiced(chptr,target_p))
|
||||
do_who(source_p, target_p, chname, flags[2]);
|
||||
else if(is_chan_admin(chptr, target_p))
|
||||
do_who(source_p, target_p, chname, flags[5]);
|
||||
do_who(source_p, target_p, chname, flags[4]);
|
||||
else
|
||||
do_who(source_p, target_p, chname, "");
|
||||
}
|
||||
|
@ -373,7 +373,7 @@ static void do_who_on_channel(struct Client *source_p,
|
|||
flags[0],
|
||||
flags[1],
|
||||
flags[2],
|
||||
flags[5],
|
||||
flags[4],
|
||||
chname, member);
|
||||
|
||||
}
|
||||
|
@ -434,7 +434,7 @@ static void do_who_list(struct Client *source_p, struct Channel *chptr,
|
|||
{
|
||||
target_p = chanadmins_ptr->data;
|
||||
if(member || !IsInvisible(target_p))
|
||||
do_who(source_p, target_p, chname, "@");
|
||||
do_who(source_p, target_p, chname, admins_flag);
|
||||
chanadmins_ptr = chanadmins_ptr->next;
|
||||
}
|
||||
else
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
* USA
|
||||
*
|
||||
* $Id: channel.c,v 1.8 2002/09/13 16:30:04 fishwaldo Exp $
|
||||
* $Id: channel.c,v 1.9 2002/09/14 17:03:00 fishwaldo Exp $
|
||||
*/
|
||||
|
||||
#include "stdinc.h"
|
||||
|
@ -700,8 +700,7 @@ channel_member_names(struct Client *source_p,
|
|||
members_ptr[1] = chptr->halfops.head;
|
||||
members_ptr[2] = chptr->voiced.head;
|
||||
members_ptr[3] = chptr->peons.head;
|
||||
members_ptr[4] = NULL;
|
||||
members_ptr[5] = chptr->chanadmins.head;
|
||||
members_ptr[4] = chptr->chanadmins.head;
|
||||
|
||||
is_member = IsMember(source_p, chptr);
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
* USA
|
||||
*
|
||||
* $Id: channel_mode.c,v 1.11 2002/09/13 16:30:04 fishwaldo Exp $
|
||||
* $Id: channel_mode.c,v 1.12 2002/09/14 17:03:00 fishwaldo Exp $
|
||||
*/
|
||||
|
||||
#include "stdinc.h"
|
||||
|
@ -2089,7 +2089,6 @@ set_channel_mode_flags(char flags_ptr[NUMLISTS][2], struct Channel *chptr,
|
|||
flags_ptr[2][0] = '\0';
|
||||
flags_ptr[3][0] = '\0';
|
||||
flags_ptr[4][0] = '\0';
|
||||
flags_ptr[5][0] = '\0';
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -2097,13 +2096,12 @@ set_channel_mode_flags(char flags_ptr[NUMLISTS][2], struct Channel *chptr,
|
|||
flags_ptr[1][0] = '%';
|
||||
flags_ptr[2][0] = '+';
|
||||
flags_ptr[3][0] = '\0';
|
||||
flags_ptr[4][0] = '\0';
|
||||
flags_ptr[5][0] = '*';
|
||||
flags_ptr[4][0] = '*';
|
||||
|
||||
flags_ptr[0][1] = '\0';
|
||||
flags_ptr[1][1] = '\0';
|
||||
flags_ptr[2][1] = '\0';
|
||||
flags_ptr[5][1] = '\0';
|
||||
flags_ptr[4][1] = '\0';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue