Subversion Repositories Kolibri OS

Rev

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

Rev 4477 Rev 4595
Line 119... Line 119...
119
 
119
 
120
 
120
 
Line 121... Line 121...
121
align 4
121
align 4
122
skip_parameter:
122
skip_parameter:
123
 
123
 
124
; First: skip the parameter
124
; First: skip the parameter (scan untill space or colon)
125
  .part1:
125
  .part1:
126
        lodsb
126
        lodsb
127
        cmp     al, ' '
127
        cmp     al, ' '
Line -... Line 128...
-
 
128
        je      .part2
-
 
129
        cmp     al, ':'
-
 
130
        jne     .part1
-
 
131
 
-
 
132
; Skip all trailing spaces
-
 
133
  .part3:
-
 
134
        lodsb
-
 
135
        cmp     al, ' '
128
        je      .part2
136
        je      .part3
129
        cmp     al, ':'
137
        dec     esi
130
        jne     .part1
138
        ret
131
 
139
 
132
; Now, skip all trailing spaces and semicolons
140
; Now, skip all trailing spaces and first semicolon
133
  .part2:
141
  .part2:
134
        lodsb
142
        lodsb
135
        cmp     al, ' '
143
        cmp     al, ' '
136
        je      .part2
-
 
137
        cmp     al, ':'
144
        je      .part2
Line -... Line 145...
-
 
145
        cmp     al, ':'
-
 
146
        je      .part3
138
        je      .part2
147
        dec     esi
139
        dec     esi
148
        ret
140
 
149
 
141
        ret
150
 
142
 
151
 
Line 706... Line 715...
706
cmd_kick:
715
cmd_kick:
Line 707... Line 716...
707
 
716
 
708
        cmp     byte [esi+4], ' '
717
        cmp     byte [esi+4], ' '
709
        jne     .fail
718
        jne     .fail
710
        add     esi, 5  ; skip 'KICK '
-
 
711
; Is it me who got kicked?
-
 
712
        mov     edi, servercommand+1
-
 
713
        call    compare_to_nick
-
 
Line -... Line 719...
-
 
719
        add     esi, 5  ; skip 'KICK '
714
        jne     .not_me
720
 
Line 715... Line 721...
715
 
721
; TODO: Is it me who got kicked?
716
; TODO: mark channel as disconnected
722
; if so, mark channel as disconnected
717
 
723
 
718
  .not_me:
-
 
719
; find the channel user has been kicked from
724
  .not_me:
-
 
725
; find the channel user has been kicked from
Line 720... Line 726...
720
        push    esi
726
        push    esi
721
        call    skip_parameter
727
        call    window_open
722
        call    window_open
728
        push    esi
Line 723... Line 729...
723
 
729
 
724
        if TIMESTAMP
730
        if TIMESTAMP
Line 725... Line 731...
725
        call    print_timestamp
731
        call    print_timestamp
726
        end if
732
        end if
727
 
733
 
Line 728... Line 734...
728
        mov     esi, kick_header
734
        mov     esi, kick_header
729
        call    print_text2
735
        call    print_text2
Line 730... Line 736...
730
 
736
 
-
 
737
        pop     eax
731
        mov     eax, servercommand+1
738
        mov     dl, ' '
Line -... Line 739...
-
 
739
        call    print_text
-
 
740
 
-
 
741
        mov     esi, str_kicked
-
 
742
        call    print_text2
-
 
743
 
-
 
744
        pop     eax
-
 
745
        mov     dl, ' '
732
        mov     dl, '!'
746
        call    print_text2
733
        call    print_text
747
 
Line 734... Line 748...
734
 
748
        mov     esi, str_by
735
        mov     esi, kicked
749
        call    print_text2
736
        call    print_text2
750