亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? command.c

?? 打魔獸戰網的都知道他是什么
?? C
?? 第 1 頁 / 共 5 頁
字號:
/* * Copyright (C) 1998  Mark Baysinger (mbaysing@ucsd.edu) * Copyright (C) 1998,1999,2000,2001  Ross Combs (rocombs@cs.nmsu.edu) * Copyright (C) 1999  Gediminas (gediminas_lt@mailexcite.com) * Copyright (C) 1999  Rob Crittenden (rcrit@greyoak.com) * Copyright (C) 2000,2001  Marco Ziech (mmz@gmx.net) * Copyright (C) 2000  Dizzy * Copyright (C) 2000  Onlyer (onlyer@263.net) * Copyright (C) 2003,2004  Aaron * Copyright (C) 2004  Donny Redmond (dredmond@linuxmail.org) * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. */#include "common/setup_before.h"#include <stdio.h>#ifdef HAVE_STDDEF_H# include <stddef.h>#else# ifndef NULL#  define NULL ((void *)0)# endif#endif#ifdef STDC_HEADERS# include <stdlib.h>#else# ifdef HAVE_MALLOC_H#  include <malloc.h># endif#endif#include "compat/strtoul.h"#ifdef HAVE_STRING_H# include <string.h>#else# ifdef HAVE_STRINGS_H#  include <strings.h># endif#endif#include "compat/strdup.h"#include "compat/strcasecmp.h"#include "compat/snprintf.h"#include <ctype.h>#include <errno.h>#include "compat/strerror.h"#ifdef TIME_WITH_SYS_TIME# include <sys/time.h># include <time.h>#else# ifdef HAVE_SYS_TIME_H#  include <sys/time.h># else#  include <time.h># endif#endif#ifdef HAVE_SYS_TYPES# include <sys/types.h>#endif#include "compat/strftime.h"#include "message.h"#include "common/tag.h"#include "connection.h"#include "channel.h"#include "game.h"#include "common/util.h"#include "common/version.h"#include "team.h"#include "account.h"#include "account_wrap.h"#include "server.h"#include "prefs.h"#include "common/eventlog.h"#include "ladder.h"#include "timer.h"#include "common/bnettime.h"#include "common/addr.h"#include "common/packet.h"#include "helpfile.h"#include "mail.h"#include "common/bnethash.h"#include "runprog.h"#include "common/list.h"#include "common/proginfo.h"#include "alias_command.h"#include "realm.h"#include "ipban.h"#include "command_groups.h"#include "common/queue.h"#include "common/bn_type.h"#include "common/xalloc.h"#include "command.h"#include "news.h"#include "common/trans.h"#include "common/lstr.h"// aaron#include "topic.h"#include "friends.h"#include "clan.h"#include "common/setup_after.h"static char const * bnclass_get_str(unsigned int class);static void do_whisper(t_connection * user_c, char const * dest, char const * text);static void do_whois(t_connection * c, char const * dest);static void user_timer_cb(t_connection * c, time_t now, t_timer_data str);char msgtemp[MAX_MESSAGE_LEN];char msgtemp2[MAX_MESSAGE_LEN];static char const * bnclass_get_str(unsigned int class){    switch (class)    {    case PLAYERINFO_DRTL_CLASS_WARRIOR:	return "warrior";    case PLAYERINFO_DRTL_CLASS_ROGUE:	return "rogue";    case PLAYERINFO_DRTL_CLASS_SORCERER:	return "sorcerer";    default:	return "unknown";    }}static void do_whisper(t_connection * user_c, char const * dest, char const * text){    t_connection * dest_c;    char const *   tname;    if (!(dest_c = connlist_find_connection_by_name(dest,conn_get_realm(user_c))))    {	message_send_text(user_c,message_type_error,user_c,"That user is not logged on.");	return;    }    if (conn_get_dndstr(dest_c))    {        sprintf(msgtemp,"%.64s is unavailable (%.128s)",conn_get_username(dest_c),conn_get_dndstr(dest_c));        message_send_text(user_c,message_type_info,user_c,msgtemp);        return;    }    message_send_text(user_c,message_type_whisperack,dest_c,text);    if (conn_get_awaystr(dest_c))    {        sprintf(msgtemp,"%.64s is away (%.128s)",conn_get_username(dest_c),conn_get_awaystr(dest_c));        message_send_text(user_c,message_type_info,user_c,msgtemp);    }    message_send_text(dest_c,message_type_whisper,user_c,text);    if ((tname = conn_get_username(user_c)))    {        char username[1+USER_NAME_MAX]; /* '*' + username (including NUL) */	if (strlen(tname)<USER_NAME_MAX)	{            sprintf(username,"*%s",tname);	    conn_set_lastsender(dest_c,username);	}    }}static void do_whois(t_connection * c, char const * dest){    t_connection *    dest_c;    char              namepart[136]; /* 64 + " (" + 64 + ")" + NUL */    char const *      verb;    t_game const *    game;    t_channel const * channel;    if ((!(dest_c = connlist_find_connection_by_accountname(dest))) &&        (!(dest_c = connlist_find_connection_by_name(dest,conn_get_realm(c)))))    {	t_account * dest_a;	t_bnettime btlogin;	time_t ulogin;	struct tm * tmlogin;	if (!(dest_a = accountlist_find_account(dest))) {	    message_send_text(c,message_type_error,c,"Unknown user.");	    return;	}	if (conn_get_class(c) == conn_class_bnet) {	    btlogin = time_to_bnettime((time_t)account_get_ll_time(dest_a),0);	    btlogin = bnettime_add_tzbias(btlogin, conn_get_tzbias(c));	    ulogin = bnettime_to_time(btlogin);	    if (!(tmlogin = gmtime(&ulogin)))		strcpy(msgtemp, "User was last seen on ?");	    else		strftime(msgtemp, sizeof(msgtemp), "User was last seen on : %a %b %d %H:%M:%S",tmlogin);	} else strcpy(msgtemp, "User is offline");	message_send_text(c, message_type_info, c, msgtemp);	return;    }    if (c==dest_c)    {	strcpy(namepart,"You");	verb = "are";    }    else    {	char const * tname;	sprintf(namepart,"%.64s",(tname = conn_get_chatcharname(dest_c,c)));	conn_unget_chatcharname(dest_c,tname);	verb = "is";    }    if ((game = conn_get_game(dest_c)))    {	sprintf(msgtemp,"%s %s using %s and %s currently in %s game \"%.64s\".",		namepart,		verb,		clienttag_get_title(conn_get_clienttag(dest_c)),		verb,		game_get_flag(game) == game_flag_private ? "private" : "",		game_get_name(game));    }    else if ((channel = conn_get_channel(dest_c)))    {        sprintf(msgtemp,"%s %s using %s and %s currently in channel \"%.64s\".",		namepart,		verb,		clienttag_get_title(conn_get_clienttag(dest_c)),		verb,		channel_get_name(channel));    }    else	sprintf(msgtemp,"%s %s using %s.",		namepart,		verb,		clienttag_get_title(conn_get_clienttag(dest_c)));    message_send_text(c,message_type_info,c,msgtemp);    if (conn_get_dndstr(dest_c))    {        sprintf(msgtemp,"%s %s refusing messages (%.128s)",		namepart,		verb,		conn_get_dndstr(dest_c));	message_send_text(c,message_type_info,c,msgtemp);    }    else        if (conn_get_awaystr(dest_c))        {            sprintf(msgtemp,"%s away (%.128s)",		    namepart,		    conn_get_awaystr(dest_c));	    message_send_text(c,message_type_info,c,msgtemp);        }}static void user_timer_cb(t_connection * c, time_t now, t_timer_data str){    if (!c)    {	eventlog(eventlog_level_error,__FUNCTION__,"got NULL connection");	return;    }    if (!str.p)    {	eventlog(eventlog_level_error,__FUNCTION__,"got NULL str");	return;    }    if (now!=(time_t)0) /* zero means user logged out before expiration */	message_send_text(c,message_type_info,c,str.p);    xfree(str.p);}typedef int (* t_command)(t_connection * c, char const * text);typedef struct {	const char * command_string;	t_command    command_handler;} t_command_table_row;static int command_set_flags(t_connection * c); // [Omega]// command handler prototypesstatic int _handle_clan_command(t_connection * c, char const * text);static int _handle_admin_command(t_connection * c, char const * text);static int _handle_aop_command(t_connection * c, char const * text);static int _handle_op_command(t_connection * c, char const * text);static int _handle_tmpop_command(t_connection * c, char const * text);static int _handle_deop_command(t_connection * c, char const * text);static int _handle_voice_command(t_connection * c, char const * text);static int _handle_devoice_command(t_connection * c, char const * text);static int _handle_vop_command(t_connection * c, char const * text);static int _handle_friends_command(t_connection * c, char const * text);static int _handle_me_command(t_connection * c, char const * text);static int _handle_whisper_command(t_connection * c, char const * text);static int _handle_status_command(t_connection * c, char const * text);static int _handle_who_command(t_connection * c, char const * text);static int _handle_whois_command(t_connection * c, char const * text);static int _handle_whoami_command(t_connection * c, char const * text);static int _handle_announce_command(t_connection * c, char const * text);static int _handle_beep_command(t_connection * c, char const * text);static int _handle_nobeep_command(t_connection * c, char const * text);static int _handle_version_command(t_connection * c, char const * text);static int _handle_copyright_command(t_connection * c, char const * text);static int _handle_uptime_command(t_connection * c, char const * text);static int _handle_stats_command(t_connection * c, char const * text);static int _handle_time_command(t_connection * c, char const * text);static int _handle_channel_command(t_connection * c, char const * text);static int _handle_rejoin_command(t_connection * c, char const * text);static int _handle_away_command(t_connection * c, char const * text);static int _handle_dnd_command(t_connection * c, char const * text);static int _handle_squelch_command(t_connection * c, char const * text);static int _handle_unsquelch_command(t_connection * c, char const * text);//static int _handle_designate_command(t_connection * c, char const * text); Obsolete function [Omega]//static int _handle_resign_command(t_connection * c, char const * text); Obsolete function [Omega]static int _handle_kick_command(t_connection * c, char const * text);static int _handle_ban_command(t_connection * c, char const * text);static int _handle_unban_command(t_connection * c, char const * text);static int _handle_reply_command(t_connection * c, char const * text);static int _handle_realmann_command(t_connection * c, char const * text);static int _handle_watch_command(t_connection * c, char const * text);static int _handle_unwatch_command(t_connection * c, char const * text);static int _handle_watchall_command(t_connection * c, char const * text);static int _handle_unwatchall_command(t_connection * c, char const * text);static int _handle_lusers_command(t_connection * c, char const * text);static int _handle_news_command(t_connection * c, char const * text);static int _handle_games_command(t_connection * c, char const * text);static int _handle_channels_command(t_connection * c, char const * text);static int _handle_addacct_command(t_connection * c, char const * text);static int _handle_chpass_command(t_connection * c, char const * text);static int _handle_connections_command(t_connection * c, char const * text);static int _handle_finger_command(t_connection * c, char const * text);static int _handle_operator_command(t_connection * c, char const * text);static int _handle_admins_command(t_connection * c, char const * text);static int _handle_quit_command(t_connection * c, char const * text);static int _handle_kill_command(t_connection * c, char const * text);static int _handle_killsession_command(t_connection * c, char const * text);static int _handle_gameinfo_command(t_connection * c, char const * text);static int _handle_ladderactivate_command(t_connection * c, char const * text);static int _handle_rehash_command(t_connection * c, char const * text);//static int _handle_rank_all_accounts_command(t_connection * c, char const * text);static int _handle_shutdown_command(t_connection * c, char const * text);static int _handle_ladderinfo_command(t_connection * c, char const * text);static int _handle_timer_command(t_connection * c, char const * text);static int _handle_serverban_command(t_connection * c, char const * text);static int _handle_netinfo_command(t_connection * c, char const * text);static int _handle_quota_command(t_connection * c, char const * text);static int _handle_lockacct_command(t_connection * c, char const * text);static int _handle_unlockacct_command(t_connection * c, char const * text);static int _handle_flag_command(t_connection * c, char const * text);static int _handle_tag_command(t_connection * c, char const * text);//static int _handle_ipban_command(t_connection * c, char const * text); Redirected to handle_ipban_command() in ipban.c [Omega]static int _handle_set_command(t_connection * c, char const * text);static int _handle_motd_command(t_connection * c, char const * text);static int _handle_ping_command(t_connection * c, char const * text);static int _handle_commandgroups_command(t_connection * c, char const * text);static int _handle_topic_command(t_connection * c, char const * text);static int _handle_moderate_command(t_connection * c, char const * text);static int _handle_clearstats_command(t_connection * c, char const * text);static int _handle_tos_command(t_connection * c, char const * text);static const t_command_table_row standard_command_table[] ={	{ "/clan"		, _handle_clan_command },	{ "/c"			, _handle_clan_command },	{ "/admin"		, _handle_admin_command },

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美乱妇20p| 中文字幕亚洲成人| 成人高清免费观看| 婷婷国产v国产偷v亚洲高清| 亚洲国产高清aⅴ视频| 欧美久久久一区| bt7086福利一区国产| 免费一级片91| 亚洲影视资源网| 国产日产欧产精品推荐色 | 色欧美日韩亚洲| 国产在线日韩欧美| 一区二区三区.www| 亚洲国产成人在线| 日韩欧美在线网站| 欧美日韩一区二区三区视频| 成人av在线电影| 韩国精品一区二区| 天天综合色天天综合色h| 亚洲人123区| 久久女同性恋中文字幕| 欧美一区二区在线免费观看| 欧美视频一区二区三区| 99精品国产91久久久久久| 国产一区二区三区精品欧美日韩一区二区三区| 亚洲综合色在线| 综合色天天鬼久久鬼色| 国产精品久久久久久福利一牛影视| 91精品国产综合久久久久| 欧美这里有精品| 99re66热这里只有精品3直播| 国产麻豆视频一区二区| 韩国成人在线视频| 久久精品国产99国产精品| 爽好多水快深点欧美视频| 亚洲小说春色综合另类电影| 中文在线一区二区| 国产精品污网站| 久久亚洲春色中文字幕久久久| 欧美一区二区三区人| 欧美日韩一区二区三区四区| 欧美日韩在线精品一区二区三区激情| 91丨porny丨首页| 91视频一区二区三区| 99久久精品一区| 色视频一区二区| 欧美影院一区二区三区| 欧美在线小视频| 欧美日韩一区二区三区四区| 欧美日本高清视频在线观看| 欧美一区午夜精品| 日韩欧美国产电影| 2022国产精品视频| 中文久久乱码一区二区| 国产精品理论片| 亚洲激情一二三区| 亚洲第一成年网| 久久精品国产999大香线蕉| 国产呦精品一区二区三区网站| 国产一区二区三区最好精华液| 国产精品亚洲专一区二区三区 | 国产激情91久久精品导航| 国产成人av一区二区三区在线 | 蜜桃av一区二区| 国内久久婷婷综合| 成人午夜激情片| 欧美影视一区在线| 日韩欧美美女一区二区三区| 亚洲精品在线观| 中文字幕一区二区三区四区不卡| 一区二区三区自拍| 婷婷国产在线综合| 国产成人在线视频网站| 91在线视频观看| 8x福利精品第一导航| 久久影视一区二区| 日韩理论片在线| 亚洲影院免费观看| 国产在线看一区| 色综合天天天天做夜夜夜夜做| 精品视频免费看| 国产丝袜美腿一区二区三区| 亚洲免费观看高清完整| 日韩电影在线看| 国产高清无密码一区二区三区| 日本韩国精品一区二区在线观看| 91麻豆精品久久久久蜜臀| 国产人伦精品一区二区| 亚洲一卡二卡三卡四卡无卡久久| 久久精品国产一区二区三| 色综合夜色一区| 欧美变态凌虐bdsm| 亚洲在线观看免费| 丰满少妇在线播放bd日韩电影| 欧美在线免费观看亚洲| 久久婷婷国产综合精品青草| 亚洲欧美一区二区不卡| 麻豆91免费观看| 色88888久久久久久影院野外 | 久久久久一区二区三区四区| 亚洲人午夜精品天堂一二香蕉| 久久精品国产免费| 91久久精品一区二区三| 久久久久久久久97黄色工厂| 亚洲成人一区二区在线观看| 成人免费毛片高清视频| 日韩精品一区二区三区老鸭窝| 亚洲女厕所小便bbb| 国产精品一级片| 日韩午夜在线观看视频| 亚洲黄色av一区| 国产专区综合网| 5858s免费视频成人| 中文字幕一区二区三区蜜月 | 久久影音资源网| 丝袜国产日韩另类美女| 99久久精品国产一区二区三区| 久久久久久久精| 久久99精品网久久| 欧美顶级少妇做爰| 亚洲国产日韩综合久久精品| 91小视频在线观看| 国产精品私人自拍| 国产成人免费视频一区| 欧美不卡视频一区| 九九久久精品视频| 日韩欧美国产综合| 喷水一区二区三区| 欧美精品tushy高清| 亚洲一区二区中文在线| 91网站最新地址| 亚洲视频电影在线| 99精品热视频| 亚洲欧美偷拍卡通变态| 97精品电影院| 亚洲日本成人在线观看| 99久久婷婷国产综合精品| 国产免费观看久久| 国产99一区视频免费| 国产欧美一区二区精品性色超碰| 国内精品在线播放| 久久亚洲综合av| 国产美女精品人人做人人爽| 2020日本不卡一区二区视频| 精品一区二区精品| 久久久久国产免费免费| 国产传媒久久文化传媒| 国产色一区二区| 成人av影院在线| 亚洲天堂福利av| 色婷婷综合激情| 亚洲va欧美va国产va天堂影院| 欧美视频一区二区| 天天射综合影视| 欧美一区在线视频| 国产精品一二三区| 亚洲日本一区二区三区| 日本精品裸体写真集在线观看| 亚洲国产成人av网| 欧美一级片免费看| 国产精品一品二品| 亚洲欧美综合色| 欧美午夜免费电影| 日韩精品一二区| 久久夜色精品一区| 不卡av在线免费观看| 亚洲精品国产精华液| 在线电影欧美成精品| 久久99国内精品| 国产精品久久久一本精品| 一本色道a无线码一区v| 日本在线播放一区二区三区| 久久影院视频免费| 一本色道综合亚洲| 蜜桃视频免费观看一区| 国产人久久人人人人爽| 在线观看精品一区| 久久精品国产在热久久| 亚洲欧洲中文日韩久久av乱码| 91精品国模一区二区三区| 成人网在线播放| 婷婷六月综合亚洲| 亚洲国产精品av| 欧美三级三级三级| 国产精品夜夜嗨| 亚洲成av人片一区二区| 欧美激情一区在线观看| 欧美日韩国产一二三| 国产a区久久久| 亚洲成av人片| 中文字幕一区日韩精品欧美| 在线播放91灌醉迷j高跟美女| 国产盗摄视频一区二区三区| 五月天久久比比资源色| 国产精品天干天干在线综合| 日韩三级伦理片妻子的秘密按摩| 成人激情黄色小说| 美腿丝袜在线亚洲一区 | 国产一区二区在线电影| 亚洲一区二区三区在线播放|