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

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

?? command.c

?? 打魔獸戰(zhàn)網的都知道他是什么
?? 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一区二区三区免费野_久草精品视频
欧美日韩日日摸| 99久久久免费精品国产一区二区| 在线播放一区二区三区| 五月天精品一区二区三区| 欧美日韩国产中文| 美女脱光内衣内裤视频久久网站| 精品裸体舞一区二区三区| 国产成人丝袜美腿| 亚洲人快播电影网| 91精品国产91久久久久久一区二区| 蜜臀av性久久久久蜜臀aⅴ| 久久久国产一区二区三区四区小说| 成人app网站| 亚洲妇女屁股眼交7| 精品少妇一区二区三区日产乱码 | 精品免费日韩av| 国产精品88888| 亚洲影视在线观看| 精品88久久久久88久久久| 国产成人欧美日韩在线电影| 亚洲综合久久久久| 欧美成人r级一区二区三区| 成人精品一区二区三区中文字幕| 亚洲第一主播视频| 欧美激情一区二区| 欧美日韩国产精品自在自线| 国产精品亚洲人在线观看| 亚洲永久免费视频| 久久久影视传媒| 欧美午夜电影在线播放| 国产精品亚洲一区二区三区妖精| 亚洲国产欧美日韩另类综合| 久久久国产精品不卡| 欧美日韩电影在线| 99久久精品久久久久久清纯| 精品中文av资源站在线观看| 有码一区二区三区| 久久久综合激的五月天| 欧美精品一二三| 色噜噜狠狠成人网p站| 国产一区不卡在线| 天天av天天翘天天综合网| 中文字幕一区二区视频| 亚洲精品一区二区三区在线观看 | 中文字幕一区二区三区蜜月| 9191精品国产综合久久久久久| av男人天堂一区| 久久国产精品72免费观看| 亚洲午夜免费电影| 一区二区三区在线视频免费| 欧美国产欧美综合| 久久欧美一区二区| 日韩丝袜情趣美女图片| 欧美日韩高清一区二区不卡| 色八戒一区二区三区| 99这里只有精品| 国产**成人网毛片九色| 国内久久精品视频| 美女mm1313爽爽久久久蜜臀| 日韩黄色免费电影| 亚洲国产成人tv| 亚洲高清免费视频| 亚洲午夜激情av| 亚洲国产视频在线| 亚洲超丰满肉感bbw| 亚洲福中文字幕伊人影院| 亚洲精品国产a久久久久久 | www.色精品| www.综合网.com| 99视频精品免费视频| 不卡电影一区二区三区| 波多野结衣一区二区三区| 国产91在线看| 成人不卡免费av| 91亚洲精品一区二区乱码| 91在线视频播放| 一本一道久久a久久精品| 色综合色狠狠综合色| 色噜噜偷拍精品综合在线| 欧美午夜一区二区三区| 欧美区视频在线观看| 4438x成人网最大色成网站| 日韩一区二区电影在线| 欧美xxxxx牲另类人与| 久久久久国产免费免费| 欧美国产在线观看| 亚洲欧美日韩一区| 亚洲一区电影777| 日韩av在线播放中文字幕| 男女性色大片免费观看一区二区| 极品少妇xxxx精品少妇| 风间由美一区二区三区在线观看 | 日韩欧美一卡二卡| 久久中文娱乐网| 亚洲视频综合在线| 玉米视频成人免费看| 性做久久久久久免费观看欧美| 日本最新不卡在线| 精品欧美乱码久久久久久| 久久久不卡网国产精品一区| 国产精品欧美一级免费| 亚洲永久精品大片| 色综合久久久久综合99| 这里只有精品视频在线观看| 精品国产自在久精品国产| 国产精品毛片a∨一区二区三区| 亚洲国产一区二区视频| 国内精品国产成人| 91蝌蚪porny| 欧美一级在线免费| 国产精品久久久久天堂| 亚洲成人av资源| 风流少妇一区二区| 欧美日本国产视频| 国产精品入口麻豆原神| 亚洲电影激情视频网站| 国产91富婆露脸刺激对白| 欧美日韩欧美一区二区| 亚洲国产成人在线| 免费在线成人网| 一本到一区二区三区| 精品国产乱码久久久久久久久| 亚洲精品中文字幕在线观看| 精品制服美女丁香| 欧美日韩一区高清| 国产精品色婷婷| 免费在线看成人av| 在线观看91精品国产入口| 久久久久综合网| 首页综合国产亚洲丝袜| 91丝袜美腿高跟国产极品老师| www一区二区| 石原莉奈在线亚洲二区| 色一情一伦一子一伦一区| 久久九九影视网| 久久99精品久久只有精品| 欧美性大战久久久久久久| 久久天天做天天爱综合色| 男人操女人的视频在线观看欧美| 91麻豆国产香蕉久久精品| 国产拍欧美日韩视频二区| 久久99精品久久久久| 欧美久久久久免费| 亚洲综合色区另类av| 91影院在线免费观看| 中文字幕不卡在线观看| 国产精品伊人色| 久久婷婷综合激情| 激情综合网最新| 精品成a人在线观看| 奇米777欧美一区二区| 欧美一区二区三区小说| 午夜精品一区二区三区电影天堂 | 国产精品国产自产拍在线| 欧美性色黄大片| 一区二区欧美视频| 欧洲亚洲国产日韩| 亚洲一区二区三区美女| 色呦呦国产精品| 一区二区三区中文在线| 欧美在线综合视频| 亚洲制服丝袜一区| 欧美美女视频在线观看| 亚洲国产精品一区二区尤物区| 欧美特级限制片免费在线观看| 亚洲人成网站色在线观看| 91女厕偷拍女厕偷拍高清| 亚洲色大成网站www久久九九| 成人av网址在线观看| **欧美大码日韩| 在线视频你懂得一区| 亚洲一区二区成人在线观看| 欧美色手机在线观看| 日韩精品电影在线观看| 欧美一个色资源| 精品一区二区三区影院在线午夜| 亚洲精品在线一区二区| 国产成人综合网| 亚洲人快播电影网| 色婷婷国产精品| 亚洲成人三级小说| 精品少妇一区二区三区视频免付费| 国产一区二区日韩精品| 国产精品素人一区二区| 色婷婷av一区| 国产乱国产乱300精品| 亚洲成人动漫在线免费观看| 欧美日韩国产123区| 六月婷婷色综合| 欧美国产1区2区| 欧美色综合天天久久综合精品| 麻豆国产一区二区| 国产精品超碰97尤物18| 欧美日韩国产一区| 国产精品一线二线三线| 亚洲精品中文在线观看| 日韩一区二区三区视频在线 | 爽好久久久欧美精品| 久久久精品一品道一区| 91论坛在线播放|