Skip to content

Commit

Permalink
contrib/anope_convert: convert +q and +a prefixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdhore committed Apr 22, 2011
1 parent bd78e6f commit 0353c90
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions contrib/anope_convert.c
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ static void ATHEME_CONVERT_write_channels(void)
ci->mlock_key ? ci->mlock_key : "");

mcout++;
fprintf(f, "CA %s %s %s 0\n", ci->name, ci->founder->display, "+AvhoOtsirRfF");
fprintf(f, "CA %s %s %s 0\n", ci->name, ci->founder->display, "+AavhoOqtsirRfF");
caout++;

for (j = 0; j < ci->accesscount; j++) {
Expand All @@ -310,7 +310,7 @@ static void ATHEME_CONVERT_write_channels(void)
case ACCESS_VOP: flags = "+AV"; break;
case ACCESS_HOP: flags = "+AvVHt"; break;
case ACCESS_AOP: flags = "+AvhoOtir"; break;
case ACCESS_SOP: flags = "+AvhoOtsirf"; break;
case ACCESS_SOP: flags = "+AavhoOtsirf"; break;
case -1: case -2: break;
default:
fprintf(f, "# Access Entry %s::%s level %d unknown, using +AvhoOtir\n",
Expand Down Expand Up @@ -435,7 +435,8 @@ int AnopeInit(int argc, char **argv)
ATHEME_CONVERT_write_accounts();
ATHEME_CONVERT_write_channels();
ATHEME_CONVERT_write_akills();
fprintf(f, "DE %d %d %d %d\n", muout, mcout, caout, klnout);
/* set the equivalents of qlout and xlout to 0 since we don't convert them */
fprintf(f, "DE %d %d %d %d 0 0\n", muout, mcout, caout, klnout);
ATHEME_CONVERT_write_botserv_bots();
fprintf(f, "# End conversion.\n");

Expand Down

0 comments on commit 0353c90

Please sign in to comment.