-
- bool do_helpop(const char** parameters, int pcnt, userrec *src)
- {
- char search[MAXBUF];
- std::string output = " "; // a fix bought to you by brain :p
- char a[MAXBUF];
- int nlines = 0;
-
- if (!pcnt)
- {
- strcpy(search,"helpop_start");
- }
- else
- {
- if (*parameters[0] == '?')
- parameters[0]++;
- strlcpy(search, "helpop_", MAXBUF);
- strlcat(search, parameters[0], MAXBUF);
- }
-
- for (char* n = search; *n; n++)
- *n = tolower(*n);
-
- for (int i = 1; output != ""; i++)
- {
- snprintf(a,MAXBUF,"line%d",i);
- output = helpop->ReadValue(search, a, 0);
- if (output != "")