void loop() { SDL_Event event; /* Check for events */ /*SDL_WaitEvent(&event); emscripten does not like waiting*/ while (SDL_PollEvent(&event)) { switch (event.type) { case SDL_KEYDOWN: case SDL_KEYUP: PrintKey(&event.key.keysym, (event.key.state == SDL_PRESSED) ? SDL_TRUE : SDL_FALSE, (event.key.repeat) ? SDL_TRUE : SDL_FALSE); break; case SDL_TEXTEDITING: PrintText("EDIT", event.text.text); break; case SDL_TEXTINPUT: PrintText("INPUT", event.text.text); break; case SDL_MOUSEBUTTONDOWN: /* Any button press quits the app... */ case SDL_QUIT: done = 1; break; default: break; } } #ifdef __EMSCRIPTEN__ if (done) { emscripten_cancel_main_loop(); } #endif }
void GUITextBox::Draw() { if(IsVisible()) { COLOR4 color = GetColor(); Box(GetX(), GetY(), GetWidth(), GetHeight(), color.r, color.g, color.b, color.a); if(GetCaption() && GetCaptionFont()) { COLOR4 c_color = GetCaptionColor(); glColor4ub(c_color.r, c_color.g, c_color.b, c_color.a); PrintText(GetCaption(), GetCaptionFont(), GetX() + GetCaptionX(), GetY() + GetCaptionY()); } if(GetTextFont()) { COLOR4 t_color = GetTextColor(); glColor4ub(t_color.r, t_color.g, t_color.b, t_color.a); PrintText(GetText(), GetTextFont(), GetX() + GetTextX(), GetY() + GetTextY()); } } }
void CTibia::SpellTimers(void) { char buf[32]; int time; unsigned int *pointer = (unsigned int*)Address::GAMESCREENPTR; unsigned int *pointer2 = (unsigned int*)(*pointer + 0x30); unsigned int *pointer3 = (unsigned int*)(*pointer2 + 0x04); SGameScreen *gs = (SGameScreen*)(*pointer3); int y = gs->Y, x = gs->X + gs->Width - 5; unsigned int t = timeGetTime(); if(isMagicShield > t) { time = isMagicShield - t; sprintf_s(buf, 32, "Magic Shield: %.2d:%.2d:%.1d", (time/1000/60), (time/1000 % 60), (time/100 % 10)); PrintText(1, x, y, 2, 0, 255, 255, buf, 2); y += 12; } if(isInvisible > t) { time = isInvisible - t; sprintf_s(buf, 32, "Invisible: %.2d:%.2d:%.1d", (time/1000/60), (time/1000 % 60), (time/100 % 10)); PrintText(1, x, y, 2, 255, 0, 255, buf, 2); y += 12; } if(isHaste > t) { time = isHaste - t; sprintf_s(buf, 32, "Haste: %.2d:%.2d:%.1d", (time/1000/60), (time/1000 % 60), (time/100 % 10)); PrintText(1, x, y, 2, 0, 255, 0, buf, 2); y += 12; } }
static void identd (void *arg, int c, void *cbd) { struct sockaddr_in addr; socklen_t len = sizeof (addr); int read_sok = accept (ident_sok, (struct sockaddr *) &addr, &len); if (read_sok < 0) { //perror ("accept"); PrintText (current_sess, "Identd startup error. Restarting.\n"); identd_stop (); identd_start (); return; } char outbuf [256]; snprintf (outbuf, sizeof (outbuf), "%%\tServicing ident request from %s\n", inet_ntoa (addr.sin_addr)); PrintText (current_sess, outbuf); struct two_ints *x = (struct two_ints *)malloc(sizeof(struct two_ints)); x->sock = read_sok; x->tag = fe_input_add (read_sok, FIA_READ, (input_callback)identd_reply, x); }
static void dns_name_callback (GObject *obj, GAsyncResult *result, gpointer user_data) { GResolver *resolver = G_RESOLVER(obj); session *sess = (session*)user_data; GList* addrs; gchar* addr; GList* list; g_return_if_fail (is_session (sess)); addrs = g_resolver_lookup_by_name_finish (resolver, result, NULL); if (addrs) { PrintText (sess, _("Resolved to:")); for (list = g_list_first (addrs); list; list = g_list_next (list)) { addr = g_inet_address_to_string (list->data); PrintTextf (sess, " %s", addr); } g_resolver_free_addresses (addrs); } else PrintText (sess, _("Not found")); }
int module_init (int ver, struct module *mod, struct session *sess) { /* This check *MUST* be done first */ if (ver != MODULE_IFACE_VER) return 1; if (module_find (name) != NULL) { /* We are already loaded */ PrintText(sess, "Module xchat-autogb already loaded\n"); return 1; } PrintText(sess, "Loaded module xchat-autogb\n"); mod->name = name; mod->desc = desc; chanmsg_sig.signal = XP_CHANMSG; chanmsg_sig.callback = XP_CALLBACK(autogb_chanmsg); chanmsg_sig.naddr = &chanmsg_next; chanmsg_sig.mod = mod; privmsg_sig.signal = XP_PRIVMSG; privmsg_sig.callback = XP_CALLBACK(autogb_privmsg); privmsg_sig.naddr = &privmsg_next; privmsg_sig.mod = mod; hook_signal(&chanmsg_sig); hook_signal(&privmsg_sig); big2gb_init(); return 0; }
void VM_Dsr::SymbolTableItem( CParseDsrSymbol *smb, long line, long level ) { if( smb ) PrintText( smb->name, line, level ); #if _DEBUG else PrintText( QString( _T("/*!!! internal error: null symbol record !!!*/") ), line, level ); #endif }
void CMainDlg::DoInWorkThread(int a, int b) { // 一行代码让此函数运行在线程中 SPARK_INSTANCE_SWTICH_TO_WORKTHREAD(CMainDlg, DoInWorkThread, a, b); PrintText(L"工作线程ID:%d,开始工作,休息2秒", ::GetCurrentThreadId()); ::Sleep(2000); int n = a + b; PrintText(L"工作线程ID:%d,完成工作,结果:%d", ::GetCurrentThreadId(), n); }
void cMenu::DrawTextBox(int index, int x, int y) { TextBoxes[index].x = x; TextBoxes[index].y = y; PrintText(TextBoxes[index].Name, x + 5, y - 15, White, Font.g_pFont); PrintText(const_cast<char *>(TextBoxes[index].Variable->c_str()), x + 5, y + 5, White, Font.g_pFont); if ( TextBoxes[index].Focused ) DrawNonFilledRectangle(x,y,100,20,Red); else DrawNonFilledRectangle(x,y,100,20,White); }
// // PrintGlobals // void PrintGlobals(void) { int i = 0; #if HUD_ANTS glRasterPos2i(10, 48+14); PrintText("ANTS: %d", ant_globals->alive_ants); #endif #if HUD_SECS glRasterPos2i(10, 48+28); PrintText("TIME: %0.1f", ant_globals->seconds); #endif #if HUD_TIME_T glRasterPos2i(10, 48+42); PrintText("TIME_T: %0.0f", ant_globals->time_t); #endif #if HUD_NEST_FOOD glRasterPos2i(10, 48+56); PrintText("FOOD: %0.0f", ant_globals->nest_food); //PrintText("FOOD: %ld", ant_globals.ticks); #endif #if HUD_GARDEN glRasterPos2i(10, 48+70); PrintText("GARD: %d", ant_globals->garden); //PrintText("FOOD: %ld", ant_globals.ticks); #endif #if HUD_POS // note: hud_NEST_FOOD must be turned off glRasterPos2i(10, 48+56); PrintText("x: %0.2f y: %0.2f", GetBotX(), GetBotY()); #endif #if HUD_HEALTH glRasterPos2i(10, 48+70); PrintText("LIFE: %0.2f", ant_globals->player_health); //PrintText("FOOD: %ld", ant_globals.ticks); #endif #if HUD_SCORE for (i = 0; i < MAX_SCORE_DISPLAY; i++) { glRasterPos2i(10, (SCREEN_HEIGHT-14)-(i*14)); PrintText("P%d %0.2f %d", ant_globals->score_obj[i].name, ant_globals->score_obj[i].score, ant_globals->score_obj[i].kills); } // end of the for #endif } // end of the function
void i386PrintFrames(PKTRAP_FRAME TrapFrame) { FRAME *Frame; PrintText("Frames:\n"); for (Frame = (FRAME*)TrapFrame->Ebp; Frame != 0 && (ULONG_PTR)Frame < STACK32ADDR; Frame = Frame->Next) { PrintText("%p ", Frame->Address); } }
static void set_showval (session *sess, const struct prefs *var, char *tbuf) { int len, dots, j; len = strlen (var->name); memcpy (tbuf, var->name, len); dots = 29 - len; if (dots < 0) dots = 0; tbuf[len++] = '\003'; tbuf[len++] = '2'; for (j=0;j<dots;j++) tbuf[j + len] = '.'; len += j; switch (var->type) { case TYPE_STR: sprintf (tbuf + len, "\0033:\017 %s\n", (char *) &prefs + var->offset); break; case TYPE_INT: sprintf (tbuf + len, "\0033:\017 %d\n", *((int *) &prefs + var->offset)); break; case TYPE_BOOL: if (*((int *) &prefs + var->offset)) sprintf (tbuf + len, "\0033:\017 %s\n", "ON"); else sprintf (tbuf + len, "\0033:\017 %s\n", "OFF"); break; } PrintText (sess, tbuf); }
void CTibia::MagwallTimer(void) { char buf[32]; unsigned int *pointer = (unsigned int*)Address::GAMESCREENPTR; unsigned int *pointer2 = (unsigned int*)(*pointer + 0x30); unsigned int *pointer3 = (unsigned int*)(*pointer2 + 0x04); SGameScreen *gs = (SGameScreen*)(*pointer3); SCreature *c = (SCreature*)CTibia::GetPlayer(); unsigned int t = timeGetTime(); for(int i = 0; i < MagwallArray; i++) { if(Magwalls[i].Time > t) { if(Magwalls[i].X >= c->X-7 && Magwalls[i].X <= c->X+7 && Magwalls[i].Y >= c->Y-5 && Magwalls[i].Y <= c->Y+5 && Magwalls[i].Z == c->Z) { double sqmpx = (double)(gs->Width - 2) / 15; int MoveX = (int)((sqmpx / 32) * (abs(c->MoveX))); int MoveY = (int)((sqmpx / 32) * (abs(c->MoveY))); MoveX = (c->MoveX > 0) ? -MoveX : MoveX; MoveY = (c->MoveY > 0) ? -MoveY : MoveY; int x = gs->X + (int)((sqmpx * (8 + -((int)c->X - (int)Magwalls[i].X + *(int*)Address::PLAYER_MOVING_X))) - (sqmpx / 2)) + MoveX; int y = gs->Y + (int)((sqmpx * (6 + -((int)c->Y - (int)Magwalls[i].Y + *(int*)Address::PLAYER_MOVING_Y))) - (sqmpx / 2)) - 5 + MoveY; int time = (Magwalls[i].Time - t); sprintf_s(buf, 32, "%.1f", (float)time/1000); PrintText(1, (int)x, (int)y, 2, 239, 239, 0, buf, 1); } } } }
void PrintDlg_OnCommand(HWND hDlg, int id,HWND hwndCtl, UINT codeNotify) { char szText[256]; switch (id) { case IDC_PRINT: GetDlgItemText(hDlg, IDC_EDIT_TEXT, szText, 256); PrintText(hDlg, szText); break; case IDC_DISPLAY: GetDlgItemText(hDlg, IDC_EDIT_TEXT, szText, 256); PrintToDisplay(hDlg, szText); break; case IDCANCEL: case IDM_EXIT: PostMessage(GetParent(hDlg),WM_DESTROY, (WPARAM)0, (LPARAM)0); DestroyWindow(hDlgMain); hDlgMain = NULL; break; default: break; } }
CommandResult cmd_country (struct session *sess, gchar *tbuf, gchar *word[], gchar *word_eol[]) { gchar *code = word[2]; if (*code) { /* search? */ if (strcmp (code, "-s") == 0) { country_search (word[3], sess, (void *)PrintTextf); return CMD_EXEC_OK; } /* search, but forgot the -s */ if (strchr (code, '*')) { country_search (code, sess, (void *)PrintTextf); return CMD_EXEC_OK; } sprintf (tbuf, "%s = %s\n", code, country (code)); PrintText (sess, tbuf); return CMD_EXEC_OK; } return CMD_EXEC_FAIL; }
void DDScreen::PrintNum(int x, int y, int fixed, int fraction) { char text[40]; ZeroMemory(&text,40); sprintf(text, "%8i.%8i", fixed, fraction ); PrintText(x,y,text); }
void mglLine::scale( int rel_x, int rel_y, float x_dir, float y_dir ) { GLfloat* buff = new GLfloat[5]; glFeedbackBuffer( 5, GL_2D, buff ); dprintf("before scaling: x1=%d, y1=%d, x2=%d, y2=%d\n", x1, y1, x2, y2 ); glRenderMode( GL_FEEDBACK ); glPushMatrix(); glScalef( x_dir, y_dir, 1 ); draw(); glPopMatrix(); //int xdiff = (int)buff[1] - x1; //int ydiff = (int)buff[2] - y1; x1 = ((int)buff[1] ); y1 = ((int)buff[2] ); x2 = ((int)buff[3] ); y2 = ((int)buff[4] ); delete[] buff; dprintf("after scaling: x1=%d, y1=%d, x2=%d, y2=%d\n", x1, y1, x2, y2 ); char mstr[20]; itoa( x1, mstr, 10 ); PrintText( 50,50, mstr ); }
static int identd (void *unused) { int sok, read_sok, len; char *p; char buf[256]; char outbuf[256]; struct sockaddr_in addr; sok = socket (AF_INET, SOCK_STREAM, 0); if (sok == INVALID_SOCKET) return 0; len = 1; setsockopt (sok, SOL_SOCKET, SO_REUSEADDR, (char *) &len, sizeof (len)); memset (&addr, 0, sizeof (addr)); addr.sin_family = AF_INET; addr.sin_port = htons (113); if (bind (sok, (struct sockaddr *) &addr, sizeof (addr)) == SOCKET_ERROR) { closesocket (sok); return 0; } if (listen (sok, 1) == SOCKET_ERROR) { closesocket (sok); return 0; } len = sizeof (addr); read_sok = accept (sok, (struct sockaddr *) &addr, &len); closesocket (sok); if (read_sok == INVALID_SOCKET) return 0; snprintf (outbuf, sizeof (outbuf), "%%\tServicing ident request from %s\n", inet_ntoa (addr.sin_addr)); PrintText (menu_sess, outbuf); recv (read_sok, buf, sizeof (buf) - 1, 0); buf[sizeof (buf) - 1] = 0; /* ensure null termination */ p = strchr (buf, ','); if (p) { snprintf (outbuf, sizeof (outbuf) - 1, "%d, %d : USERID : UNIX : %s\r\n", atoi (buf), atoi (p + 1), prefs.username); outbuf[sizeof (outbuf) - 1] = 0; /* ensure null termination */ send (read_sok, outbuf, strlen (outbuf), 0); } sleep (1); closesocket (read_sok); identd_is_running = FALSE; return 0; }
void notify_showlist (struct session *sess) { char outbuf[256]; struct notify *notify; GSList *list = notify_list; struct notify_per_server *servnot; int i = 0; EMIT_SIGNAL (XP_TE_NOTIFYHEAD, sess, NULL, NULL, NULL, NULL, 0); while (list) { i++; notify = (struct notify *) list->data; servnot = notify_find_server_entry (notify, sess->server); if (servnot && servnot->ison) snprintf (outbuf, sizeof (outbuf), _(" %-20s online\n"), notify->name); else snprintf (outbuf, sizeof (outbuf), _(" %-20s offline\n"), notify->name); PrintText (sess, outbuf); list = list->next; } if (i) { sprintf (outbuf, "%d", i); EMIT_SIGNAL (XP_TE_NOTIFYNUMBER, sess, outbuf, NULL, NULL, NULL, 0); } else EMIT_SIGNAL (XP_TE_NOTIFYEMPTY, sess, NULL, NULL, NULL, NULL, 0); }
void identd_really_start () { if (ident_sok >= 0) return; ident_sok = launch_identd_helper (); if (ident_sok < 0) PrintText (current_sess, "Unable to start identd\n"); else { ident_tag = fe_input_add (ident_sok, FIA_READ, (input_callback)identd, NULL); PrintText (current_sess, "identd started\n"); } }
ObjectStruct* CreateObject(u16 objectType, ObjectFunctionType updateFunction, ObjectFunctionType destroyFunction, ObjectFunctionType drawFunction, ObjectCollisionFunctionType collisionFunction) { if (!CanCreateObject(objectType)) { return 0; } // Tries to find a free slot in the object array. // If there isn't, the object won't be created. ObjectCollection* objectCollection = objectCollections[objectType]; u16 loop = 0; ObjectStruct* tempObjectList = objectCollection->objectList; u16 numAliveObjects = 0; u16 numDeadObjects = 0; for (; loop < objectCollection->maxActiveObjects; loop++) { ObjectStruct* object = tempObjectList; if (object->objectState == OBJECTSTATE_FREE) { totalActiveObjects++; object->updateFunction = (ObjectFunctionTypePrototype)updateFunction; object->destroyFunction = (ObjectFunctionTypePrototype)destroyFunction; object->drawFunction = (ObjectFunctionTypePrototype)drawFunction; object->collisionFunction = (ObjectCollisionFunctionPrototype)collisionFunction; object->objectState = OBJECTSTATE_ACTIVE; object->objectType = objectType; objectCollection->numActiveObjects++; #ifdef DEBUG_OBJECT_MANAGEMENT KDebug_Alert("Created Object. Objects Total:"); PrintNumber(totalActiveObjects); #endif return object; } else if (object->objectState == OBJECTSTATE_ACTIVE) { numAliveObjects++; } else if (object->objectState == OBJECTSTATE_INACTIVE) { numDeadObjects++; } tempObjectList++; } #ifdef DEBUG_OBJECT_MANAGEMENT KDebug_Alert("Could not add object. Too many created"); PrintNumber(numAliveObjects); PrintNumber(numDeadObjects); #endif PrintText("none avialable"); return 0; }
/** * Enter a logical block */ void IDebugLog::OpenBlock(void) { SeekCursor(indentLevel * 4); PrintText(headerText); inBlock = 1; }
void PrintFPS() { static const Font* font = FontByName(DEBUG_FONT); glColor4ub(0, 255, 0, 255); char frames_per_second[16]; sprintf(frames_per_second, "FPS: %u\0", fps); PrintText(frames_per_second, font, 5, 40); }
void loop() { SDL_Event event; /* Check for events */ /*SDL_WaitEvent(&event); emscripten does not like waiting*/ while (SDL_PollEvent(&event)) { switch (event.type) { case SDL_KEYDOWN: case SDL_KEYUP: PrintKey(&event.key.keysym, (event.key.state == SDL_PRESSED) ? SDL_TRUE : SDL_FALSE, (event.key.repeat) ? SDL_TRUE : SDL_FALSE); break; case SDL_TEXTEDITING: PrintText("EDIT", event.text.text); break; case SDL_TEXTINPUT: PrintText("INPUT", event.text.text); break; case SDL_MOUSEBUTTONDOWN: /* Left button quits the app, other buttons toggles text input */ if (event.button.button == SDL_BUTTON_LEFT) { done = 1; } else { if (SDL_IsTextInputActive()) { SDL_Log("Stopping text input\n"); SDL_StopTextInput(); } else { SDL_Log("Starting text input\n"); SDL_StartTextInput(); } } break; case SDL_QUIT: done = 1; break; default: break; } } #ifdef __EMSCRIPTEN__ if (done) { emscripten_cancel_main_loop(); } #endif }
// // Draw Hud // void DrawHUD(void) { glLoadIdentity(); // change the matrix glMatrixMode(GL_PROJECTION); // current view glPushMatrix(); #if ENABLE_HUD glDisable(GL_LIGHTING); // setup projectino for text glLoadIdentity(); glOrtho(0, SCREEN_WIDTH, 0, SCREEN_HEIGHT, -1.0, 1.0); // get rid of textured text glDisable(GL_TEXTURE_2D); // dont need depth test glDisable(GL_DEPTH_TEST); // draw variables glColor3f(1.0, 1.0, 0.0); glRasterPos2i(10, 48); PrintText("FPS: %0.2f", framerate); PrintGlobals(); glPopMatrix(); // end // reset the textures glEnable(GL_TEXTURE_2D); glEnable(GL_DEPTH_TEST); glEnable(GL_LIGHTING); #endif // Begin normal code // reset the matrix glMatrixMode(GL_PROJECTION); glLoadIdentity(); gluPerspective(45.0f, (GLfloat)SCREEN_WIDTH / (GLfloat)SCREEN_HEIGHT, 0.1f, PERSPECTIVE_Z); glMatrixMode(GL_MODELVIEW); GetFramesPerSecond(); // get frames } // end of the function
int main(int argc, char *argv[]) { SDL_Window *window; SDL_Event event; int done; /* Initialize SDL */ if (SDL_Init(SDL_INIT_VIDEO) < 0) { fprintf(stderr, "Couldn't initialize SDL: %s\n", SDL_GetError()); return (1); } /* Set 640x480 video mode */ window = SDL_CreateWindow("CheckKeys Test", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 640, 480, 0); if (!window) { fprintf(stderr, "Couldn't create 640x480 window: %s\n", SDL_GetError()); quit(2); } #if __IPHONEOS__ /* Creating the context creates the view, which we need to show keyboard */ SDL_GL_CreateContext(window); #endif if (SDL_HasScreenKeyboardSupport(window)) { SDL_ShowScreenKeyboard(window); } /* Watch keystrokes */ done = 0; while (!done) { /* Check for events */ SDL_WaitEvent(&event); switch (event.type) { case SDL_KEYDOWN: case SDL_KEYUP: PrintKey(&event.key.keysym, event.key.state, event.key.repeat); break; case SDL_TEXTINPUT: PrintText(event.text.text); break; case SDL_MOUSEBUTTONDOWN: /* Any button press quits the app... */ case SDL_QUIT: done = 1; break; default: break; } } SDL_Quit(); return (0); }
void DDScreen::PrintFPS( int x, int y, double dt ) { if ( dt ) { char text[20]; sprintf(text, "FPS: %5.2f", 1000.0/dt ); PrintText(x,y,text); } }
int main(int argc, char *argv[]) { SDL_Event event; int done; Uint32 videoflags; /* Initialize SDL */ if (SDL_Init(SDL_INIT_VIDEO) < 0) { fprintf(stderr, "Couldn't initialize SDL: %s\n", SDL_GetError()); return (1); } videoflags = SDL_SWSURFACE; while (argc > 1) { --argc; if (argv[argc] && !strcmp(argv[argc], "-fullscreen")) { videoflags |= SDL_FULLSCREEN; } else { fprintf(stderr, "Usage: %s [-fullscreen]\n", argv[0]); quit(1); } } /* Set 640x480 video mode */ if (SDL_SetVideoMode(640, 480, 0, videoflags) == NULL) { fprintf(stderr, "Couldn't set 640x480 video mode: %s\n", SDL_GetError()); quit(2); } /* Watch keystrokes */ done = 0; while (!done) { /* Check for events */ SDL_WaitEvent(&event); switch (event.type) { case SDL_KEYDOWN: case SDL_KEYUP: PrintKey(&event.key.keysym, event.key.state, event.key.repeat); break; case SDL_TEXTINPUT: PrintText(event.text.text); break; case SDL_MOUSEBUTTONDOWN: /* Any button press quits the app... */ case SDL_QUIT: done = 1; break; default: break; } } SDL_Quit(); return (0); }
void cMenu::DrawSlider(int index, int x, int y) { Sliders[index].x = x; Sliders[index].y = y; DrawLine(x,y,x+120,y,3, Outline); //may change size of the line PrintText(Sliders[index].Name, x + 5, y - 15, White, Font.g_pFont); char lol[256]; sprintf(lol, "%i", Sliders[index].Value); PrintText(lol, x + 55, y + 5, White, Font.g_pFont); //Actual Slider float fpos = ((float)Sliders[index].Value/(float)Sliders[index].MaxValue)*((float)120); float pos = (float)x + (float)fpos; Sliders[index].pos = (int)pos; DrawFilledRectangle(Sliders[index].pos - 10, y - 3, 20, 5, Grey); DrawNonFilledRectangle(Sliders[index].pos - 10, y - 3, 20, 5, White); }
void ignore_showlist (session *sess) { struct ignore *ig; GSList *list = ignore_list; char tbuf[256]; int i = 0; EMIT_SIGNAL (XP_TE_IGNOREHEADER, sess, 0, 0, 0, 0, 0); while (list) { ig = list->data; i++; g_snprintf (tbuf, sizeof (tbuf), " %-25s ", ig->mask); if (ig->type & IG_PRIV) strcat (tbuf, _("YES ")); else strcat (tbuf, _("NO ")); if (ig->type & IG_NOTI) strcat (tbuf, _("YES ")); else strcat (tbuf, _("NO ")); if (ig->type & IG_CHAN) strcat (tbuf, _("YES ")); else strcat (tbuf, _("NO ")); if (ig->type & IG_CTCP) strcat (tbuf, _("YES ")); else strcat (tbuf, _("NO ")); if (ig->type & IG_DCC) strcat (tbuf, _("YES ")); else strcat (tbuf, _("NO ")); if (ig->type & IG_INVI) strcat (tbuf, _("YES ")); else strcat (tbuf, _("NO ")); if (ig->type & IG_UNIG) strcat (tbuf, _("YES ")); else strcat (tbuf, _("NO ")); strcat (tbuf, "\n"); PrintText (sess, tbuf); /*EMIT_SIGNAL (XP_TE_IGNORELIST, sess, ig->mask, 0, 0, 0, 0); */ /* use this later, when TE's support 7 args */ list = list->next; } if (!i) EMIT_SIGNAL (XP_TE_IGNOREEMPTY, sess, 0, 0, 0, 0, 0); EMIT_SIGNAL (XP_TE_IGNOREFOOTER, sess, 0, 0, 0, 0, 0); }