Remove some dead code in funny_mode().
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@130 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
@@ -398,29 +398,19 @@ void funny_mode(char *from, char **ArgList)
|
|||||||
mode = ArgList[1];
|
mode = ArgList[1];
|
||||||
PasteArgs(ArgList, 1);
|
PasteArgs(ArgList, 1);
|
||||||
|
|
||||||
if((channel && in_join_list(channel, from_server)) || get_chan_from_join_list(from_server))
|
if (in_join_list(channel, from_server))
|
||||||
{
|
{
|
||||||
if (!channel)
|
|
||||||
channel = get_chan_from_join_list(from_server);
|
|
||||||
update_channel_mode(from, channel, from_server, mode, chan);
|
update_channel_mode(from, channel, from_server, mode, chan);
|
||||||
update_all_status(current_window, NULL, 0);
|
update_all_status(current_window, NULL, 0);
|
||||||
got_info(channel, from_server, GOTMODE);
|
got_info(channel, from_server, GOTMODE);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
|
||||||
if (channel)
|
|
||||||
{
|
{
|
||||||
set_display_target(channel, LOG_CRAP);
|
set_display_target(channel, LOG_CRAP);
|
||||||
if (do_hook(current_numeric, "%s %s %s", from, channel, mode))
|
if (do_hook(current_numeric, "%s %s %s", from, channel, mode))
|
||||||
put_it("%s", convert_output_format(fget_string_var(FORMAT_MODE_CHANNEL_FSET), "%s %s %s %s %s", update_clock(GET_TIME), from, *FromUserHost ? FromUserHost:"<EFBFBD>", channel, mode));
|
put_it("%s", convert_output_format(fget_string_var(FORMAT_MODE_CHANNEL_FSET), "%s %s %s %s %s", update_clock(GET_TIME), from, *FromUserHost ? FromUserHost:"<EFBFBD>", channel, mode));
|
||||||
reset_display_target();
|
reset_display_target();
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
if (do_hook(current_numeric, "%s %s", from, mode))
|
|
||||||
put_it("%s", convert_output_format(fget_string_var(FORMAT_MODE_CHANNEL_FSET), "%s %s %s %s", update_clock(GET_TIME), from, *FromUserHost ? FromUserHost:"<EFBFBD>", mode));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void update_user_mode(char *modes)
|
void update_user_mode(char *modes)
|
||||||
|
|||||||
Reference in New Issue
Block a user