Cleanup remove_channel()
remove_channel() is only called in direct response to a message from a server, so it always acts on from_server - remove the unnecessary server argument. The channel argument is always non-NULL - remove the dead code that removed all channels if a NULL channel was passed.
This commit is contained in:
@@ -427,7 +427,7 @@ extern Function_ptr *global;
|
||||
#define get_channel_bans (*(char *(*)(char *, int , int ))global[GET_CHANNEL_BANS])
|
||||
#define get_channel_mode (*(char *(*)(char *, int ))global[GET_CHANNEL_MODE])
|
||||
#define clear_bans (*(void (*)(ChannelList *))global[CLEAR_BANS])
|
||||
#define remove_channel (*(void (*)(char *, int ))global[REMOVE_CHANNEL])
|
||||
#define remove_channel (*(void (*)(const char *))global[REMOVE_CHANNEL])
|
||||
#define remove_from_channel (*(void (*)(char *, char *, int , int , char *))global[REMOVE_FROM_CHANNEL])
|
||||
#define rename_nick (*(void (*)(char *, char *, int ))global[RENAME_NICK])
|
||||
#define get_channel_oper (*(int (*)(char *, int ))global[GET_CHANNEL_OPER])
|
||||
|
||||
@@ -61,7 +61,7 @@ void set_channel_mode (char *, int, char *);
|
||||
#endif /* INCLUDE_UNUSED_FUNCTIONS */
|
||||
ChannelList * BX_add_channel (char *, int, int);
|
||||
ChannelList * BX_add_to_channel (char *, char *, int, int, int, char *, char *, char *, int, int);
|
||||
void BX_remove_channel (char *, int);
|
||||
void BX_remove_channel (const char *);
|
||||
void BX_remove_from_channel (char *, char *, int, int, char *);
|
||||
int BX_is_on_channel (char *, int, char *);
|
||||
void list_channels (void);
|
||||
|
||||
Reference in New Issue
Block a user