Subversion Repositories Kolibri OS

Rev

Rev 4622 | Rev 4659 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4622 Rev 4623
Line 11... Line 11...
11
;;         GNU GENERAL PUBLIC LICENSE                              ;;
11
;;         GNU GENERAL PUBLIC LICENSE                              ;;
12
;;          Version 2, June 1991                                   ;;
12
;;          Version 2, June 1991                                   ;;
13
;;                                                                 ;;
13
;;                                                                 ;;
14
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
14
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 15... Line 15...
15
 
15
 
Line 16... Line 16...
16
version equ '0.19'
16
version equ '0.20'
17
 
17
 
18
; connection status
18
; connection status
19
STATUS_DISCONNECTED     = 0
19
STATUS_DISCONNECTED     = 0
Line 198... Line 198...
198
        invoke  ini.get_str, path, str_user, str_real, user_real_name, MAX_REAL_LEN, default_real
198
        invoke  ini.get_str, path, str_user, str_real, user_real_name, MAX_REAL_LEN, default_real
199
        invoke  ini.get_str, path, str_user, str_quitmsg, quit_msg, 250, default_quit
199
        invoke  ini.get_str, path, str_user, str_quitmsg, quit_msg, 250, default_quit
Line 200... Line 200...
200
 
200
 
201
; Welcome user
201
; Welcome user
202
        mov     esi, str_welcome
202
        mov     esi, str_welcome
Line 203... Line 203...
203
        call    print_text2
203
        call    print_asciiz
204
 
204
 
205
; Check if parameter contains an URL
205
; Check if parameter contains an URL
206
        cmp     byte[param], 0
206
        cmp     byte[param], 0
Line 240... Line 240...
240
        mov     edi, [window_active]
240
        mov     edi, [window_active]
241
        cmp     [edi + window.type], WINDOWTYPE_CHANNEL
241
        cmp     [edi + window.type], WINDOWTYPE_CHANNEL
242
        jne     .no_update
242
        jne     .no_update
243
        call    draw_channel_list
243
        call    draw_channel_list
244
  .no_update:
244
  .no_update:
-
 
245
        call    highlight_updated_tabs
Line 245... Line 246...
245
 
246
 
Line 246... Line 247...
246
        jmp     mainloop
247
        jmp     mainloop
Line 288... Line 289...
288
        dec     eax
289
        dec     eax
289
        imul    eax, MAX_NICK_LEN
290
        imul    eax, MAX_NICK_LEN
290
        mov     ebx, [ebx + window.data_ptr]
291
        mov     ebx, [ebx + window.data_ptr]
291
        lea     esi, [ebx + window_data.names + eax]
292
        lea     esi, [ebx + window_data.names + eax]
292
        call    window_open
293
        call    window_open
-
 
294
        test    ebx, ebx
293
        push    [window_print]
295
        jz      mainloop
294
        pop     [window_active]
296
        mov     [window_active], ebx
295
        call    redraw
297
        call    redraw
Line 296... Line 298...
296
 
298
 
Line 297... Line 299...
297
        jmp     mainloop
299
        jmp     mainloop
Line 301... Line 303...
301
        jb      exit
303
        jb      exit
Line 302... Line 304...
302
 
304
 
303
        cmp     ax, MAX_WINDOWS
305
        cmp     ax, MAX_WINDOWS
Line -... Line 306...
-
 
306
        ja      exit
-
 
307
 
-
 
308
; Save users scrollbar position
-
 
309
        push    [scroll1.position]
-
 
310
        mov     edx, [window_active]
304
        ja      exit
311
        pop     [edx + window.users_scroll]
305
 
312
 
306
; OK, time to switch to another window.
313
; OK, time to switch to another window.
307
        mov     dx, sizeof.window
314
        mov     dx, sizeof.window
308
        mul     dx
315
        mul     dx
Line 314... Line 321...
314
        mov     [window_active], edx
321
        mov     [window_active], edx
Line 315... Line 322...
315
 
322
 
316
        push    [edx + window.text_line_print]
323
        push    [edx + window.text_line_print]
Line -... Line 324...
-
 
324
        pop     [scroll2.position]
-
 
325
 
-
 
326
        push    [edx + window.users_scroll]
317
        pop     [scroll2.position]
327
        pop     [scroll1.position]
318
 
328
 
Line 319... Line 329...
319
        call    draw_window
329
        call    draw_window
Line 434... Line 444...
434
ctcp_time               db '] TIME', 10, 0
444
ctcp_time               db '] TIME', 10, 0
Line 435... Line 445...
435
 
445
 
436
has_left_channel        db ' has left ', 0
446
has_left_channel        db ' has left ', 0
437
joins_channel           db ' has joined ', 0
447
joins_channel           db ' has joined ', 0
438
is_now_known_as         db ' is now known as ', 0
448
is_now_known_as         db ' is now known as ', 0
Line 439... Line 449...
439
has_quit_irc            db ' has quit IRC.', 10, 0
449
has_quit_irc            db ' has quit IRC', 10, 0
440
 
450
 
441
sets_mode               db ' sets mode ', 0
451
sets_mode               db ' sets mode ', 0
442
str_kicked              db ' is kicked from ', 0
452
str_kicked              db ' is kicked from ', 0
443
str_by                  db ' by ', 0
453
str_by                  db ' by ', 0
444
str_nickchange          db 'Nickname is now ', 0
454
str_nickchange          db 'Nickname is now ', 0
445
str_realchange          db 'Real name is now ', 0
455
str_realchange          db 'Real name is now ', 0
446
str_talking             db 'Now talking in ', 0
456
str_talking             db 'Now talking in ', 0
447
str_topic               db 'Topic is "', 0
457
str_topic               db 'Topic is "', 0
Line 448... Line 458...
448
str_topic_end           db '".', 10, 0
458
str_topic_end           db '"', 10, 0
449
str_setby               db 'Set by ', 0
459
str_setby               db 'Set by ', 0
450
 
460
 
451
str_connecting          db 3, '3* Connecting to ', 0
461
str_connecting          db 3, '3* Connecting to ', 0
452
str_sockerr             db 3, '5* Socket error', 10, 0
462
str_sockerr             db 3, '5* Socket error', 10, 0
453
str_dnserr              db 3, '5* Unable to resolve hostname', 10, 0
463
str_dnserr              db 3, '5* Unable to resolve hostname', 10, 0
454
str_refused             db 3, '5* Connection refused', 10, 0
464
str_refused             db 3, '5* Connection refused', 10, 0
Line 455... Line -...
455
str_disconnected        db 3, '5* Server disconnected', 10, 0
-
 
456
str_reconnect           db 3, '5* Connection reset by user', 10, 0
-
 
457
str_notconnected        db 3, '5* Not connected to server', 10, 0
465
str_disconnected        db 3, '5* Server disconnected', 10, 0
458
 
466
str_reconnect           db 3, '5* Connection reset by user', 10, 0
Line -... Line 467...
-
 
467
str_notconnected        db 3, '5* Not connected to server', 10, 0
-
 
468
 
459
str_dotnewline          db '.',10, 0
469
str_1                   db 3, '13 -', 0
-
 
470
str_2                   db '- ', 0
-
 
471
 
-
 
472
str_list                db 'list', 0
-
 
473
 
-
 
474
str_help                db 'The following commands are available:', 10
-
 
475
                        db 10
-
 
476
                        db '/nick         : change nickname', 10
-
 
477
                        db '/real    : change real name', 10
-
 
478
                        db '/server 
: connect to server', 10
-
 
479
                        db '/code         : change codepage (cp866, cp1251, or utf8)', 10
460
str_newline             db 10, 0
480
                        db '/join      : join a channel', 10
461
str_1                   db 3, '13 -', 0
481
                        db '/part      : part from a channel', 10
462
str_2                   db '- ', 0
-
 
463
 
482
                        db '/quit               : quit server', 10
464
str_help                db 10, 'following commands are available:', 10
-
 
Line 465... Line 483...
465
                        db 10
483
                        db '/msg          : send a private message', 10
466
                        db '/nick         : change nickname to ', 10
484
                        db '/ctcp         : send a message using client to client protocol', 10
467
                        db '/real    : change real name to ', 10
485
                        db 10
468
                        db '/server 
: connect to server
', 10
486
                        db 'Other commands are send straight to server.', 10
Line 582... Line 600...
582
quit_msg        rb 250
600
quit_msg        rb 250
Line 583... Line 601...
583
 
601
 
Line 584... Line 602...
584
windows         rb MAX_WINDOWS*sizeof.window
602
windows         rb MAX_WINDOWS*sizeof.window
585
 
-
 
586
IM_END:
-
 
587
-
 
588
-
 
589
-
 
590
-
 
591
-