本文整理汇总了C++中protocol_debug函数的典型用法代码示例。如果您正苦于以下问题:C++ protocol_debug函数的具体用法?C++ protocol_debug怎么用?C++ protocol_debug使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了protocol_debug函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: denora_event_chghost
int denora_event_chghost(char *source, int ac, char **av)
{
if (denora->protocoldebug) {
protocol_debug(source, ac, av);
}
change_user_host(av[0], av[1]);
return MOD_CONT;
}
开发者ID:danopia,项目名称:denora,代码行数:8,代码来源:plexus.c
示例2: denora_event_swhois
int denora_event_swhois(char *source, int ac, char **av)
{
if (denora->protocoldebug) {
protocol_debug(source, ac, av);
}
do_swhois(av[0], av[1]);
return MOD_CONT;
}
开发者ID:danopia,项目名称:denora,代码行数:8,代码来源:nefarious13.c
示例3: denora_event_setname
int denora_event_setname(char *source, int ac, char **av)
{
if (denora->protocoldebug) {
protocol_debug(source, ac, av);
}
change_user_realname(av[0], av[1]);
return MOD_CONT;
}
开发者ID:danopia,项目名称:denora,代码行数:8,代码来源:nefarious13.c
示例4: denora_event_part
/* ABAAA L #ircops */
int denora_event_part(char *source, int ac, char **av)
{
if (denora->protocoldebug) {
protocol_debug(source, ac, av);
}
do_part(source, ac, av);
return MOD_CONT;
}
开发者ID:danopia,项目名称:denora,代码行数:9,代码来源:nefarious13.c
示例5: denora_event_spamburst
int denora_event_spamburst(char *source, int ac, char **av)
{
if (denora->protocoldebug) {
protocol_debug(source, ac, av);
}
return MOD_CONT;
}
开发者ID:danopia,项目名称:denora,代码行数:8,代码来源:nefarious13.c
示例6: denora_event_svinfo
/*
* SVINFO
* parv[0] = sender prefix
* parv[1] = TS_CURRENT for the server
* parv[2] = TS_MIN for the server
* parv[3] = server is standalone or connected to non-TS only
* parv[4] = server's idea of UTC time
*/
int denora_event_svinfo(char *source, int ac, char **av)
{
if (denora->protocoldebug) {
protocol_debug(source, ac, av);
}
/* currently not used but removes the message : unknown message from server */
return MOD_CONT;
}
开发者ID:danopia,项目名称:denora,代码行数:16,代码来源:plexus.c
示例7: denora_event_motd
int denora_event_motd(char *source, int ac, char **av)
{
if (denora->protocoldebug) {
protocol_debug(source, ac, av);
}
m_motd(source);
return MOD_CONT;
}
开发者ID:danopia,项目名称:denora,代码行数:8,代码来源:plexus.c
示例8: denora_event_capab
/* Event: PROTOCTL */
int denora_event_capab(char *source, int ac, char **av)
{
if (denora->protocoldebug) {
protocol_debug(source, ac, av);
}
capab_parse(ac, av);
return MOD_CONT;
}
开发者ID:danopia,项目名称:denora,代码行数:9,代码来源:plexus.c
示例9: denora_event_away
int denora_event_away(char *source, int ac, char **av)
{
if (denora->protocoldebug) {
protocol_debug(source, ac, av);
}
m_away(source, (ac ? av[0] : NULL));
return MOD_CONT;
}
开发者ID:danopia,项目名称:denora,代码行数:8,代码来源:plexus.c
示例10: denora_event_eob
int denora_event_eob(char *source, int ac, char **av)
{
if (denora->protocoldebug) {
protocol_debug(source, ac, av);
}
update_sync_state(source, SYNC_COMPLETE);
return MOD_CONT;
}
开发者ID:danopia,项目名称:denora,代码行数:8,代码来源:plexus.c
示例11: denora_event_pong
int denora_event_pong(char *source, int ac, char **av)
{
if (denora->protocoldebug) {
protocol_debug(source, ac, av);
}
server_store_pong(source, time(NULL));
return MOD_CONT;
}
开发者ID:danopia,项目名称:denora,代码行数:8,代码来源:plexus.c
示例12: denora_event_unxline
int denora_event_unxline(char *source, int ac, char **av)
{
if (denora->protocoldebug) {
protocol_debug(source, ac, av);
}
sql_do_unxline(av[1]);
return MOD_CONT;
}
开发者ID:danopia,项目名称:denora,代码行数:8,代码来源:plexus.c
示例13: denora_event_unkline
int denora_event_unkline(char *source, int ac, char **av)
{
if (denora->protocoldebug) {
protocol_debug(source, ac, av);
}
sql_do_server_bans_remove(NULL, av[1], av[2]);
return MOD_CONT;
}
开发者ID:danopia,项目名称:denora,代码行数:8,代码来源:plexus.c
示例14: denora_event_jupe
/* <source> JU <targetservermask> [!]<+/-><jupedservername> <duration> <timestamp> :<reason>
* AVAAC JU * +something.fake 5 1214347612 :Some fake jupe */
int denora_event_jupe(char *source, int ac, char **av)
{
if (denora->protocoldebug) {
protocol_debug(source, ac, av);
}
p10_gline((char *) "J", source, ac, av);
return MOD_CONT;
}
开发者ID:danopia,项目名称:denora,代码行数:10,代码来源:nefarious13.c
示例15: denora_event_akill
int denora_event_akill(char *source, int ac, char **av)
{
if (denora->protocoldebug)
{
protocol_debug(source, ac, av);
}
sql_do_server_bans_add(NULL, av[1], av[0], av[3], av[4], av[2], av[5]);
return MOD_CONT;
}
开发者ID:denora,项目名称:protocol-legacy,代码行数:9,代码来源:solidircd.c
示例16: denora_event_rping
/* AB RI AN ABAAB 1166048441 214764 :<No client start time> */
int denora_event_rping(char *source, int ac, char **av)
{
if (denora->protocoldebug)
protocol_debug(source, ac, av);
send_cmd(av[0], "RO %s %s %s %s :%s", ServerName, av[1], av[2], av[3],
av[4]);
return MOD_CONT;
}
开发者ID:danopia,项目名称:denora,代码行数:10,代码来源:scarynet.c
示例17: denora_event_svsnick
int denora_event_svsnick(char *source, int ac, char **av)
{
if (denora->protocoldebug) {
protocol_debug(source, ac, av);
}
do_nick(av[0], av[1], NULL, NULL, NULL, NULL,
time(NULL), 0, NULL, NULL, NULL, 0, NULL, NULL);
return MOD_CONT;
}
开发者ID:danopia,项目名称:denora,代码行数:9,代码来源:plexus.c
示例18: denora_event_push
int denora_event_push(char *source, int ac, char **av)
{
/* Thanks to w00t from the inspircd team for helping me to write this function
* debug: Received: :rock.musichat.net PUSH TestBOT ::rock.musichat.net 242 TestBOT :Server up 1 days, 07:47:54
*/
Server *s;
char *num;
char buf[NET_BUFSIZE];
if (denora->protocoldebug) {
protocol_debug(source, ac, av);
}
num = myStrGetToken(av[1], ' ', 1);
av[1] = myStrGetTokenRemainder(av[1], ' ', 3);
if (!num || !av[1]) {
alog(LOG_ERROR,
"ERROR: Something wicked while handling the PUSH message (truncated message)");
return MOD_CONT;
}
if (!strcmp(num, "375")) {
rdb_query(QUERY_LOW, "UPDATE %s SET motd=\'\' WHERE server=\'%s\'",
ServerTable, source);
} else if (!strcmp(num, "372")) {
s = server_find(source);
if (!s) {
return MOD_CONT;
}
av[1]++;
if (ac >= 2) {
if (s->motd) {
ircsnprintf(buf, NET_BUFSIZE - 1, "%s\n\r%s", s->motd,
av[1]);
free(s->motd);
s->motd = sstrdup(buf);
} else {
s->motd = sstrdup(av[1]);
}
}
} else if (!strcmp(num, "376")) {
s = server_find(source);
if (!s) {
return MOD_CONT;
}
sql_motd_store(s);
} else if (!strcmp(num, "242")) {
av[1]++;
sql_do_uptime(source, av[1]);
} else if (!strcmp(num, "248")) {
av[2] = myStrGetTokenRemainder(av[1], ' ', 1);
av[1] = myStrGetToken(av[1], ' ', 1); /* possible memleak at this location */
sql_uline(av[2]);
}
return MOD_CONT;
}
开发者ID:danopia,项目名称:denora,代码行数:57,代码来源:inspircd11.c
示例19: denora_event_version
int denora_event_version(char *source, int ac, char **av)
{
if (denora->protocoldebug) {
protocol_debug(source, ac, av);
}
av[0] = strtok(av[0], " ");
sql_do_server_version(source, ac, av);
return MOD_CONT;
}
开发者ID:danopia,项目名称:denora,代码行数:9,代码来源:inspircd11.c
示例20: denora_event_clearmode
int denora_event_clearmode(char *source, int ac, char **av)
{
if (denora->protocoldebug) {
protocol_debug(source, ac, av);
}
chan_clearmodes(source, ac, av);
return MOD_CONT;
}
开发者ID:wodim,项目名称:irc-hispano,代码行数:9,代码来源:asuka.c
注:本文中的protocol_debug函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论