/dports/irc/atheme-services/atheme-7.2.9/modules/chanserv/ |
H A D | set_mlock.c | 40 char modebuf[32], *end, c; in cs_cmd_set_mlock() local 244 modebuf[0] = *arg; in cs_cmd_set_mlock() 245 modebuf[1] = '\0'; in cs_cmd_set_mlock() 264 modebuf[0] = ' '; in cs_cmd_set_mlock() 265 modebuf[1] = '\0'; in cs_cmd_set_mlock() 268 modebuf[0] = ignore_mode_list[i].mode; in cs_cmd_set_mlock() 269 modebuf[1] = '\0'; in cs_cmd_set_mlock() 270 mowgli_strlcat(newext, modebuf, sizeof newext); in cs_cmd_set_mlock() 272 modebuf, ignore_mode_list_size + 1); in cs_cmd_set_mlock() 283 end = modebuf; in cs_cmd_set_mlock() [all …]
|
/dports/irc/ircd-hybrid/ircd-hybrid-8.2.39/modules/core/ |
H A D | m_sjoin.c | 147 char modebuf[IRCD_BUFSIZE]; in remove_ban_list() local 157 cur_len = mlen = snprintf(modebuf, sizeof(modebuf), ":%s MODE %s -", in remove_ban_list() 159 mbuf = modebuf + mlen; in remove_ban_list() 175 mbuf = modebuf + mlen; in remove_ban_list() 360 if (*modebuf) in ms_sjoin() 368 modebuf[0] = '0'; in ms_sjoin() 369 modebuf[1] = '\0'; in ms_sjoin() 389 char *mbuf = modebuf; in ms_sjoin() 526 mbuf = modebuf; in ms_sjoin() 553 mbuf = modebuf; in ms_sjoin() [all …]
|
H A D | m_bmask.c | 58 char modebuf[IRCD_BUFSIZE] = ""; in ms_bmask() local 97 mlen = snprintf(modebuf, sizeof(modebuf), ":%s MODE %s +", in ms_bmask() 100 mbuf = modebuf + mlen; in ms_bmask() 122 if (mbuf - modebuf + 2 + pbuf - parabuf + tlen > IRCD_BUFSIZE - 2 || in ms_bmask() 127 sendto_channel_local(NULL, channel, flags, 0, 0, "%s %s", modebuf, parabuf); in ms_bmask() 128 mbuf = modebuf + mlen; in ms_bmask() 144 sendto_channel_local(NULL, channel, flags, 0, 0, "%s %s", modebuf, parabuf); in ms_bmask()
|
H A D | m_join.c | 174 char modebuf[MODEBUFLEN]; in ms_join() local 236 set_final_mode(&mode, oldmode, modebuf, parabuf); in ms_join() 262 if (*modebuf) in ms_join() 264 origin->name, channel->name, modebuf, parabuf); in ms_join()
|
/dports/irc/unreal/Unreal3.2.10.7/src/modules/ |
H A D | m_sjoin.c | 161 modebuf[b] = 0;\ 273 modebuf[0] = '+'; in CMD_FUNC() 274 modebuf[1] = '\0'; in CMD_FUNC() 281 modebuf[0] = '-'; in CMD_FUNC() 384 modebuf[0] = '+'; in CMD_FUNC() 559 if (modebuf[1]) in CMD_FUNC() 572 strlcpy(modebuf, parv[3], sizeof modebuf); in CMD_FUNC() 609 strlcpy(modebuf, parv[3], sizeof modebuf); in CMD_FUNC() 624 strlcpy(modebuf, "-", sizeof modebuf); in CMD_FUNC() 712 strlcpy(modebuf, "+", sizeof modebuf); in CMD_FUNC() [all …]
|
H A D | m_server.c | 1047 cp = modebuf + strlen(modebuf); in send_mode_list() 1091 cp = modebuf; in send_mode_list() 1140 *modebuf = '+'; in send_channel_modes() 1152 *modebuf = '+'; in send_channel_modes() 1161 *modebuf = '+'; in send_channel_modes() 1170 *modebuf = '+'; in send_channel_modes() 1179 *modebuf = '+'; in send_channel_modes() 1188 *modebuf = '+'; in send_channel_modes() 1197 *modebuf = '+'; in send_channel_modes() 1223 cp = modebuf + strlen(modebuf); in send_ban_list() [all …]
|
H A D | m_list.c | 274 modebuf[0] = '['; in CMD_FUNC() 276 if (modebuf[2] == '\0') in CMD_FUNC() 277 modebuf[0] = '\0'; in CMD_FUNC() 279 strlcat(modebuf, "]", sizeof modebuf); in CMD_FUNC() 286 modebuf, in CMD_FUNC() 401 modebuf[0] = '['; in _send_list() 403 if (modebuf[2] == '\0') in _send_list() 404 modebuf[0] = '\0'; in _send_list() 406 strlcat(modebuf, "]", sizeof modebuf); in _send_list() 417 modebuf : "", in _send_list() [all …]
|
H A D | m_svsmode.c | 215 modebuf[0] = 0; in channel_svsmode() 386 modebuf, parabuf); in channel_svsmode() 387 sendto_serv_butone(NULL, ":%s MODE %s %s %s", sptr->name, chptr->chname, modebuf, parabuf); in channel_svsmode() 390 RunHook7(HOOKTYPE_REMOTE_CHANMODE, cptr, sptr, chptr, modebuf, parabuf, ts, 0); in channel_svsmode() 632 if (!modes) modes = modebuf; in add_send_mode_param() 634 if (!modebuf[0]) { in add_send_mode_param() 635 modes = modebuf; in add_send_mode_param() 663 from->name, chptr->chname, modebuf, parabuf); in add_send_mode_param() 664 sendto_serv_butone(NULL, ":%s MODE %s %s %s", from->name, chptr->chname, modebuf, parabuf); in add_send_mode_param() 667 modes = modebuf; in add_send_mode_param()
|
H A D | m_mode.c | 160 *modebuf = *parabuf = '\0'; in CMD_FUNC() 162 modebuf[1] = '\0'; in CMD_FUNC() 165 chptr->chname, modebuf, parabuf); in CMD_FUNC() 450 modebuf, parabuf); in bounce_mode() 510 if (*modebuf == '\0' || (*(modebuf + 1) == '\0' && (*modebuf == '+' in _do_mode() 511 || *modebuf == '-'))) in _do_mode() 530 if (modebuf[1]) in _do_mode() 546 if (*(modebuf + 1) == '\0') in _do_mode() 566 modebuf, parabuf, sendts); in _do_mode() 573 modebuf, parabuf); in _do_mode() [all …]
|
/dports/editors/mg/mg-6.9/ |
H A D | modes.c | 118 char modebuf[32], *bufp; in set_default_mode() local 120 if ((bufp = eread("Set Default Mode: ", modebuf, sizeof(modebuf), in set_default_mode() 125 if ((m = name_mode(modebuf)) == NULL) { in set_default_mode() 127 ewprintf("can't find mode %s", modebuf); in set_default_mode() 159 if (strcmp(modebuf, "overwrite") == 0) { in set_default_mode() 166 if (strcmp(modebuf, "notab") == 0) { in set_default_mode()
|
/dports/irc/anope/anope-2.0.9/modules/protocol/ |
H A D | inspircd20.cpp | 673 Anope::string modebuf; in Run() local 675 sep.GetToken(modebuf); in Run() 683 sep.GetToken(modebuf); in Run() 691 sep.GetToken(modebuf); in Run() 699 sep.GetToken(modebuf); in Run() 704 ModeManager::AddChannelMode(new ChannelMode(chmodes[modebuf[t]], modebuf[t])); in Run() 711 Anope::string modebuf; in Run() local 713 sep.GetToken(modebuf); in Run() 714 sep.GetToken(modebuf); in Run() 718 ModeManager::AddUserMode(new UserModeParam(umodes[modebuf[t]], modebuf[t])); in Run() [all …]
|
H A D | inspircd12.cpp | 573 Anope::string modebuf; in Run() local 575 sep.GetToken(modebuf); in Run() 578 switch (modebuf[t]) in Run() 601 sep.GetToken(modebuf); in Run() 604 switch (modebuf[t]) in Run() 614 sep.GetToken(modebuf); in Run() 617 switch (modebuf[t]) in Run() 642 sep.GetToken(modebuf); in Run() 645 switch (modebuf[t]) in Run() 728 Anope::string modebuf; in Run() local [all …]
|
H A D | unreal.cpp | 623 Anope::string modebuf; in Run() local 625 sep.GetToken(modebuf); in Run() 626 for (size_t t = 0, end = modebuf.length(); t < end; ++t) in Run() 628 switch (modebuf[t]) in Run() 652 sep.GetToken(modebuf); in Run() 653 for (size_t t = 0, end = modebuf.length(); t < end; ++t) in Run() 655 switch (modebuf[t]) in Run() 671 sep.GetToken(modebuf); in Run() 674 switch (modebuf[t]) in Run() 687 sep.GetToken(modebuf); in Run() [all …]
|
/dports/irc/ircd-hybrid/ircd-hybrid-8.2.39/src/ |
H A D | channel_mode.c | 759 char modebuf[IRCD_BUFSIZE] = ""; in send_mode_changes_server() local 765 mbl = snprintf(modebuf, sizeof(modebuf), ":%s TMODE %ju %s ", in send_mode_changes_server() 798 mbl = snprintf(modebuf, sizeof(modebuf), ":%s TMODE %ju %s ", in send_mode_changes_server() 813 modebuf[mbl++] = mode_changes[i].letter; in send_mode_changes_server() 814 modebuf[mbl] = '\0'; in send_mode_changes_server() 847 char modebuf[IRCD_BUFSIZE] = ""; in send_mode_changes_client() local 854 mbl = snprintf(modebuf, sizeof(modebuf), ":%s!%s@%s MODE %s ", client->name, in send_mode_changes_client() 857 mbl = snprintf(modebuf, sizeof(modebuf), ":%s MODE %s ", (IsHidden(client) || in send_mode_changes_client() 882 mbl = snprintf(modebuf, sizeof(modebuf), ":%s!%s@%s MODE %s ", client->name, in send_mode_changes_client() 885 mbl = snprintf(modebuf, sizeof(modebuf), ":%s MODE %s ", (IsHidden(client) || in send_mode_changes_client() [all …]
|
H A D | channel.c | 151 char modebuf[MODEBUFLEN]; in channel_demote_members() local 153 char *mbuf = modebuf; in channel_demote_members() 181 mbuf = modebuf; in channel_demote_members() 208 const char *modebuf, const char *parabuf) in channel_send_members() argument 258 char modebuf[IRCD_BUFSIZE]; in channel_send_mask_list() local 266 mlen = snprintf(modebuf, sizeof(modebuf), ":%s BMASK %ju %s %c :", me.id, in channel_send_mask_list() 282 sendto_one(client, "%s%s", modebuf, parabuf); in channel_send_mask_list() 293 sendto_one(client, "%s%s", modebuf, parabuf); in channel_send_mask_list() 303 char modebuf[MODEBUFLEN] = ""; in channel_send_modes() local 306 channel_modes(channel, client, NULL, modebuf, parabuf); in channel_send_modes() [all …]
|
/dports/comms/hamlib/hamlib-4.3.1/rigs/uniden/ |
H A D | uniden.c | 352 const char *modebuf; in uniden_set_mode() local 357 modebuf = "RM AM"EOM; in uniden_set_mode() 363 modebuf = "RM NFM"EOM; in uniden_set_mode() 367 modebuf = "RM FM"EOM; in uniden_set_mode() 373 modebuf = "RM WFM"EOM; in uniden_set_mode() 380 return uniden_transaction(rig, modebuf, strlen(modebuf), NULL, NULL, NULL); in uniden_set_mode() 385 char modebuf[BUFSZ]; in uniden_get_mode() local 403 if (!strcmp(modebuf + 3, "AM")) in uniden_get_mode() 407 else if (!strcmp(modebuf + 3, "WFM")) in uniden_get_mode() 411 else if (!strcmp(modebuf + 3, "FM")) in uniden_get_mode() [all …]
|
/dports/irc/undernet-ircu/ircu2.10.12.19/ircd/ |
H A D | m_mode.c | 138 char modebuf[MODEBUFLEN]; in m_mode() local 141 *modebuf = *parabuf = '\0'; in m_mode() 142 modebuf[1] = '\0'; in m_mode() 143 channel_modes(sptr, modebuf, parabuf, sizeof(parabuf), chptr, member); in m_mode() 144 send_reply(sptr, RPL_CHANNELMODEIS, chptr->chname, modebuf, parabuf); in m_mode()
|
H A D | hash.c | 456 char modebuf[MODEBUFLEN]; in list_next_channels() local 459 modebuf[0] = modebuf[1] = parabuf[0] = '\0'; in list_next_channels() 460 channel_modes(cptr, modebuf, parabuf, sizeof(parabuf), chptr, NULL); in list_next_channels() 462 chptr->chname, chptr->users, modebuf, parabuf, chptr->topic); in list_next_channels()
|
/dports/comms/hamlib/hamlib-4.3.1/rigs/kenwood/ |
H A D | flex6xxx.c | 159 char modebuf[10]; in flex6k_get_mode() local 170 retval = kenwood_safe_transaction(rig, "MD", modebuf, 6, 3); in flex6k_get_mode() 177 *mode = kenwood2rmode(modebuf[2] - '0', caps->mode_table); in flex6k_get_mode() 193 retval = kenwood_safe_transaction(rig, "ZZFI", modebuf, 10, 6); in flex6k_get_mode() 197 retval = kenwood_safe_transaction(rig, "ZZFJ", modebuf, 10, 6); in flex6k_get_mode() 210 index = atoi(&modebuf[4]); in flex6k_get_mode() 257 char modebuf[10]; in powersdr_get_mode() local 267 retval = kenwood_safe_transaction(rig, "ZZMD", modebuf, 10, 6); in powersdr_get_mode() 274 *mode = kenwood2rmode(atoi(&modebuf[4]), caps->mode_table); in powersdr_get_mode() 299 lo = atoi(&modebuf[4]); in powersdr_get_mode() [all …]
|
/dports/irc/ircd-ratbox/ircd-ratbox-3.0.10/modules/core/ |
H A D | m_mode.c | 241 static char modebuf[BUFSIZE]; in ms_bmask() local 299 mbuf = modebuf + mlen; in ms_bmask() 336 sendto_channel_local(mems, chptr, "%s %s", modebuf, parabuf); in ms_bmask() 338 "%s %s", modebuf, parabuf); in ms_bmask() 340 mbuf = modebuf + mlen; in ms_bmask() 371 sendto_channel_local(mems, chptr, "%s %s", modebuf, parabuf); in ms_bmask() 1366 static char modebuf[BUFSIZE]; in set_channel_mode() local 1419 mlen = rb_sprintf(modebuf, ":%s!%s@%s MODE %s ", in set_channel_mode() 1426 mbuf = modebuf + mlen; in set_channel_mode() 1457 sendto_channel_local(flags, chptr, "%s %s", modebuf, in set_channel_mode() [all …]
|
/dports/irc/ircd-ratbox-devel/ircd-ratbox-3.0.7/modules/core/ |
H A D | m_mode.c | 241 static char modebuf[BUFSIZE]; in ms_bmask() local 299 mbuf = modebuf + mlen; in ms_bmask() 336 sendto_channel_local(mems, chptr, "%s %s", modebuf, parabuf); in ms_bmask() 338 "%s %s", modebuf, parabuf); in ms_bmask() 340 mbuf = modebuf + mlen; in ms_bmask() 371 sendto_channel_local(mems, chptr, "%s %s", modebuf, parabuf); in ms_bmask() 1366 static char modebuf[BUFSIZE]; in set_channel_mode() local 1419 mlen = rb_sprintf(modebuf, ":%s!%s@%s MODE %s ", in set_channel_mode() 1426 mbuf = modebuf + mlen; in set_channel_mode() 1457 sendto_channel_local(flags, chptr, "%s %s", modebuf, in set_channel_mode() [all …]
|
/dports/irc/scrollz/ScrollZ-ScrollZ-2.3/source/ |
H A D | names.c | 794 char modebuf[mybufsize / 32]; local 820 *modebuf = '\0'; 1129 strmcat(modebuf, "-o", sizeof(modebuf)); 1160 strmcat(modebuf, "-o", sizeof(modebuf)); 1170 *modebuf = '\0'; 1175 strmcat(modebuf, "+o", sizeof(modebuf)); 1328 strmcat(modebuf, "-o", sizeof(modebuf)); 1397 strmcat(modebuf, "-b", sizeof(modebuf)); 1412 … strmcat(modebuf, "-o", sizeof(modebuf)); 1499 *modebuf = '\0'; [all …]
|
H A D | edit4.c | 2863 memset(modebuf, 0, sizeof(modebuf)); 2875 strmcat(modebuf, "-b", sizeof(modebuf)); 2893 strmcat(modebuf, "-b", sizeof(modebuf)); 2905 memset(modebuf, 0, sizeof(modebuf)); 2912 memset(modebuf, 0, sizeof(modebuf)); 2924 strmcat(modebuf, "+o", sizeof(modebuf)); 2932 memset(modebuf, 0, sizeof(modebuf)); 2965 memset(modebuf, 0, sizeof(modebuf)); 2973 strmcat(modebuf, "-o", sizeof(modebuf)); 2983 strmcat(modebuf, "-o", sizeof(modebuf)); [all …]
|
/dports/comms/hamlib/hamlib-4.3.1/rigs/icmarine/ |
H A D | icmarine.c | 529 char modebuf[BUFSZ]; in icmarine_get_mode() local 533 retval = icmarine_transaction(rig, CMD_MODE, NULL, modebuf); in icmarine_get_mode() 540 if (!memcmp(modebuf, MD_LSB, strlen(MD_LSB))) in icmarine_get_mode() 544 else if (!memcmp(modebuf, MD_USB, strlen(MD_USB))) in icmarine_get_mode() 548 else if (!memcmp(modebuf, MD_CW, strlen(MD_CW))) in icmarine_get_mode() 552 else if (!memcmp(modebuf, MD_AM, strlen(MD_AM))) in icmarine_get_mode() 556 else if (!memcmp(modebuf, MD_FSK, strlen(MD_FSK))) in icmarine_get_mode()
|
/dports/irc/anope/anope-2.0.9/src/ |
H A D | users.cpp | 612 Anope::string modebuf, sbuf; in SetModes() local 619 sep.GetToken(modebuf); in SetModes() 620 for (unsigned i = 0, end = modebuf.length(); i < end; ++i) in SetModes() 624 switch (modebuf[i]) in SetModes() 635 um = ModeManager::FindUserModeByChar(modebuf[i]); in SetModes() 656 Anope::string modebuf, sbuf; in SetModesInternal() local 666 sep.GetToken(modebuf); in SetModesInternal() 667 for (unsigned i = 0, end = modebuf.length(); i < end; ++i) in SetModesInternal() 671 switch (modebuf[i]) in SetModesInternal() 682 um = ModeManager::FindUserModeByChar(modebuf[i]); in SetModesInternal()
|