'****Activity 1 ****
Sub Process_Globals
Dim IRC As IRCClass ' Reference to the library
Dim Nick As String
Dim Channel As String
Dim Password As String
Dim Server As String
Dim result As String
result=""
End Sub
Sub chat_RawFeed( data As String )
'''Nick lists on Channel
For i=0 To IRC.NickList.Size-1
ListView2.AddSingleLine(IRC.NickList.GetKeyAt(i))
Log(IRC.NickList.GetKeyAt(i))
Next
End Sub
Sub SendMessage( Txt As String )
If Txt.StartsWith("/") Then
IRC.Send(Txt.SubString(1))
Else
IRC.Send("PRIVMSG " & Nick1 & " " & Txt)
End If
End Sub
Sub Button1_Click
If EditText1.Text <> "" Then
SendMessage(EditText1.Text &CRLF)
EditText1.Text=""
End Sub
Public Sub ListView2_ItemClick (Position As Int, Value As Object)
result=Value
StartActivity(chati)
End Sub
'********Activity 2 (chati)**************
Sub SendMessage( Txt As String )
If Main.result<>0 Then
If Txt.StartsWith("/") Then
IRC.Send(Txt.SubString(1))
Else
IRC.Send("PRIVMSG " & Main.result & " " & Txt)
End If
End If
End Sub
Sub Button2_Click
If EditText1.Text <> "" Then
SendMessage(EditText1.Text & CRLF)
EditText1.Text=""
End Sub