Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Public Sub CommandCheck(strUser As String, strMessage As String, ByVal Ping As Long)
- On Error GoTo EndingOfSUB
- If GetStuff("Settings", "DisableCommands") = "1" Then
- Exit Sub
- End If
- Dim strCmd As String
- Dim strFlags As String, TheUser As Long, strRest As String
- TheUser = Form1.DB.FindUser(strUser)
- If TheUser = -1 Then Exit Sub
- strFlags = Form1.DB.GetFlags(strUser)
- strTrigger = GetStuff("Settings", "Trigger")
- If Mid(strMessage, 1, 8) = "?trigger" Then
- Form1.Queue.AddItem "My current trigger is: " & strTrigger
- Exit Sub
- End If
- If InStr(strFlags, "M") > 0 Then strFlags = "DONMASTR"
- If LCase(Mid(strMessage, 1, 1)) = strTrigger Then
- strCmd = Split(strMessage, strTrigger)(1)
- If Len(strCmd) < 2 Then Exit Sub
- Dim paramS() As String
- paramS() = Split(strCmd, " ")
- strRest = Mid(strCmd, Len(paramS(0)) + 2)
- Select Case LCase(paramS(0))
- Case "pingme", "myping", "ping", "findping":
- If InStr(strFlags, "M") > 0 Or InStr(strFlags, "N") > 0 Then
- If UBound(paramS) > 0 Then
- If paramS(1) = "me" Then
- Form1.Queue.AddItem (strUser & "'s ping is " & Ping & " ms.")
- Exit Sub
- ElseIf paramS(1) = "?" Then
- Form1.Queue.AddItem "To check your own ping, type: " & strTrigger & "pingme, " & strTrigger & "myping, or " & strTrigger & "ping me. To check another users ping, type: " & strTrigger & "ping <Name>."
- Exit Sub
- Else
- If InStr(strFlags, "R") > 0 Or InStr(strFlags, "T") > 0 Or InStr(strFlags, "M") > 0 Then
- If paramS(0) = "pingme" Then Exit Sub
- If paramS(0) = "myping" Then Exit Sub
- Form1.pUser = paramS(1)
- Form1.pDiscover = True
- Form1.Queue.AddItem "/w " & paramS(1) & " Ping pong!"
- Exit Sub
- End If
- End If
- Else
- Form1.Queue.AddItem (strUser & "'s ping is " & Ping & " ms.")
- Exit Sub
- End If
- End If
- Exit Sub
- Case "cq", "clearqueue", "clear":
- If InStr(strFlags, "A") > 0 Or InStr(strFlags, "T") > 0 Or InStr(strFlags, "M") > 0 Then
- If UBound(paramS) > 0 Then
- If paramS(1) = "?" Then
- Form1.Queue.AddItem "To use this command, simply type: " & strTrigger & paramS(0)
- Exit Sub
- End If
- If paramS(0) = "clear" Then
- If paramS(1) = "queue" Then
- Form1.Queue.Clear
- Form1.Queue.AddItem "Queue Cleared."
- Exit Sub
- End If
- End If
- Else
- Form1.Queue.Clear
- Form1.Queue.AddItem "Queue Cleared."
- Exit Sub
- End If
- End If
- Exit Sub
- Case "version", "ver", "about":
- If InStr(strFlags, "N") > 0 Then
- If UBound(paramS) > 0 Then
- If paramS(1) = "?" Then
- Form1.Queue.AddItem "To use this command, simply type: " & strTrigger & paramS(0)
- Exit Sub
- End If
- Else
- If StonerMode = True Then
- Form1.Queue.AddItem "/me is stoned and so is his bot - StonerBot " & App.Major & "." & App.Minor & " - by Mesiah"
- Else
- Form1.Queue.AddItem "Dude! I'm a StonerBot " & App.Major & "." & App.Minor & " - by Mesiah"
- End If
- Exit Sub
- End If
- End If
- Exit Sub
- Case "scrambler":
- If InStr(strFlags, "O") > 0 Then
- If UBound(paramS) > 0 Then
- If paramS(1) = "?" Then
- Form1.Queue.AddItem "To use this command, type: " & strTrigger & paramS(0) & " <on/off>"
- Exit Sub
- End If
- If paramS(1) = "on" Then
- Dim MyValue As Integer
- Randomize
- MyValue = RandomNumber(1, Form1.ScrambleList.ListCount)
- scWord1 = Form1.ScrambleList.List(MyValue)
- scWord2 = scrambleInput(scWord1)
- If MyValue = scOldWord Then
- Randomize
- MyValue = RandomNumber(1, Form1.ScrambleList.ListCount)
- scWord1 = Form1.ScrambleList.List(MyValue)
- scWord2 = scrambleInput(scWord1)
- End If
- scTries = 0
- DoScramble = True
- scSolved = False
- If LCase(scWord1) = LCase(scWord2) Then
- MyValue = RandomNumber(1, Form1.ScrambleList.ListCount)
- scWord1 = Form1.ScrambleList.List(MyValue)
- scWord2 = scrambleInput(scWord1)
- End If
- Form1.Queue.AddItem "Word scrambler enabled."
- Form1.Timer1.Enabled = True
- Form1.Queue.AddItem "Unscramble: " & haxorize(scWord2)
- scOldWord = MyValue
- Exit Sub
- ElseIf paramS(1) = "off" Then
- Form1.Queue.AddItem "Word scrambler disabled."
- Form1.Timer1.Enabled = False
- DoScramble = False
- Exit Sub
- End If
- End If
- End If
- Exit Sub
- Case "whoami", "mystats", "astat":
- If InStr(strFlags, "N") > 0 Then
- If UBound(paramS) = 0 Then
- Form1.Queue.AddItem "You are " & strUser & ", using " & _
- Form1.RoomList.ListItems(Form1.RoomList.FindItem(strUser).Index).ListSubItems(1).key & _
- ". Your ping is " & Ping & "ms. Your access flags are: " & strFlags
- Exit Sub
- Else
- If paramS(1) = "?" Then
- Form1.Queue.AddItem "To use this command, simply type: " & strTrigger & paramS(0)
- End If
- Exit Sub
- End If
- End If
- Exit Sub
- Case "stats":
- If InStr(strFlags, "R") > 0 Or InStr(strFlags, "T") > 0 Then
- If UBound(paramS) > 0 Then
- If paramS(1) = "?" Then
- Form1.Queue.AddItem "To use this command, type: " & strTrigger & "stats <NameOfPersonInChannel>"
- Exit Sub
- End If
- Dim tmpUser As Long
- tmpUser = Form1.DB.FindUser(paramS(1))
- Form1.Queue.AddItem "User " & Form1.RoomList.FindItem(paramS(1)).text & " is using " & _
- Form1.RoomList.ListItems(Form1.RoomList.FindItem(paramS(1)).Index).ListSubItems(1).key & _
- " with a ping of " & GetPing(paramS(1)) & "ms. Their access flags are: " & Form1.DB.GetFlags(paramS(1))
- Exit Sub
- End If
- End If
- Exit Sub
- Case "rejoin", "rj":
- If InStr(strFlags, "O") > 0 Or InStr(strFlags, "A") > 0 Or InStr(strFlags, "M") > 0 Then
- If UBound(paramS) = 0 Then
- Form1.BNHash.Rejoin
- Exit Sub
- Else
- If paramS(1) = "?" Then
- Form1.Queue.AddItem "To use this command, simply type: " & strTrigger & paramS(0)
- Exit Sub
- End If
- End If
- End If
- Exit Sub
- Case "slap":
- If InStr(strFlags, "R") > 0 Then
- If UBound(paramS) >= 1 Then
- If paramS(1) = "?" Then
- Form1.Queue.AddItem "To use this command, type: " & strTrigger & paramS(0) & " <Name>"
- Exit Sub
- Else
- Form1.Queue.AddItem "/me slaps " & paramS(1) & " upside the head with a large fish."
- Exit Sub
- End If
- End If
- End If
- Exit Sub
- Case "join", "goto":
- If InStr(strFlags, "O") > 0 Or InStr(strFlags, "A") > 0 Or InStr(strFlags, "M") > 0 Then
- If UBound(paramS) >= 1 Then
- If paramS(1) = "?" Then
- Form1.Queue.AddItem "To use this command, type: " & strTrigger & paramS(0) & " <channel>"
- Exit Sub
- Else
- Form1.BNHash.FullJoin strRest
- Exit Sub
- End If
- End If
- End If
- Exit Sub
- Case "joingame":
- If InStr(strFlags, "O") > 0 Or InStr(strFlags, "A") > 0 Or InStr(strFlags, "M") > 0 Then
- If UBound(paramS) >= 1 Then
- If paramS(1) = "?" Then
- Form1.Queue.AddItem "To use this command, type: " & strTrigger & paramS(0) & " <GameName> <GamePass>"
- Exit Sub
- End If
- If UBound(paramS) >= 2 Then
- Form1.Queue.AddItem "Joining Private Game: " & paramS(1) & " Password: " & paramS(2)
- DoEvents
- Pause 12
- Form1.BNHash.Join paramS(1), paramS(2)
- Exit Sub
- Else
- Form1.Queue.AddItem "Joining Public Game: " & paramS(1)
- Pause 12
- DoEvents
- Form1.BNHash.Join paramS(1), ""
- Exit Sub
- End If
- End If
- End If
- Exit Sub
- Case "creategame":
- If InStr(strFlags, "O") > 0 Or InStr(strFlags, "A") > 0 Or InStr(strFlags, "M") > 0 Then
- If UBound(paramS) >= 1 Then
- If paramS(1) = "?" Then
- Form1.Queue.AddItem "To use this command, type: " & strTrigger & paramS(0) & " <GameName> <GamePass>"
- Exit Sub
- End If
- If UBound(paramS) >= 2 Then
- Form1.Queue.AddItem "Creating Private Game: " & paramS(1) & " Password: " & paramS(2)
- DoEvents
- Pause 12
- Form1.BNHash.CreateGame paramS(1), paramS(2)
- Exit Sub
- Else
- Form1.Queue.AddItem "Creating Public Game: " & paramS(1)
- Pause 12
- DoEvents
- Form1.BNHash.CreateGame paramS(1), ""
- Exit Sub
- End If
- End If
- End If
- Exit Sub
- Case "serve", "pass", "smoke", "toke":
- If InStr(strFlags, "R") > 0 Or InStr(strFlags, "A") > 0 Or InStr(strFlags, "M") > 0 Then
- If UBound(paramS) >= 1 Then
- If paramS(1) = "?" Then
- If paramS(0) = "serve" Then
- Form1.Queue.AddItem "To use this command, type: " & strTrigger & paramS(0) & " <Person> <Object>"
- Exit Sub
- ElseIf paramS(0) = "pass" Then
- Form1.Queue.AddItem "To use this command, type: " & strTrigger & paramS(0) & " <Person> <Object>"
- Exit Sub
- End If
- If paramS(0) = "smoke" Then
- Form1.Queue.AddItem "To use this command, type: " & strTrigger & paramS(0) & " <Substance_or_Device>"
- Exit Sub
- ElseIf paramS(0) = "toke" Then
- Form1.Queue.AddItem "To use this command, type: " & strTrigger & paramS(0) & " <Substance_or_Device>"
- Exit Sub
- End If
- End If
- If paramS(0) = "serve" Then
- If UBound(paramS) >= 2 Then
- Form1.Queue.AddItem "/me serves " & paramS(1) & " a nice " & paramS(2) & ", at the request of " & strUser & "."
- If StonerMode = True Then
- Form1.Queue.AddItem "How do you like that shit, " & paramS(1) & "?"
- Exit Sub
- End If
- Exit Sub
- End If
- ElseIf paramS(0) = "pass" Then
- If UBound(paramS) >= 2 Then
- Form1.Queue.AddItem "/me passes the " & paramS(2) & " to " & paramS(1) & ", at the request of " & strUser & "."
- If StonerMode = True Then
- Form1.Queue.AddItem "How do you like that shit, " & paramS(1) & "?"
- Exit Sub
- End If
- Exit Sub
- End If
- ElseIf paramS(0) = "smoke" Then
- Form1.Queue.AddItem "/me lights up the " & strRest & "..."
- If StonerMode = False Then
- Form1.Queue.AddItem "Mmmmm.. thank you " & strUser & "!"
- Else
- Form1.Queue.AddItem "Mmm, not bad. Anyone else want some? type: " & strTrigger & "pass <NameToPassToo> " & strRest
- End If
- Exit Sub
- ElseIf paramS(0) = "toke" Then
- Form1.Queue.AddItem "/me tokes up the " & strRest & "..."
- If StonerMode = False Then
- Form1.Queue.AddItem "Mmmmm.. thank you " & strUser & "!"
- Else
- Form1.Queue.AddItem "Mmm, not bad. Anyone else want some? type: " & strTrigger & "pass <NameToPassToo> " & strRest
- End If
- Exit Sub
- End If
- End If
- End If
- Exit Sub
- Case "stonermode":
- If InStr(strFlags, "O") > 0 Or InStr(strFlags, "A") > 0 Or InStr(strFlags, "M") > 0 Then
- If UBound(paramS) > 0 Then
- If paramS(1) = "?" Then
- Form1.Queue.AddItem "To turn Stoner Mode on or off, type: " & strTrigger & " <on/off>"
- Exit Sub
- End If
- If paramS(1) = "" Then Exit Sub
- If paramS(1) = "on" Then
- Form1.Queue.AddItem "Stoner Mode has been enabled."
- StonerMode = True
- WriteStuff "Settings", "StonerMode", "1"
- Form1.BackColor = &H4000&
- Form1.tabS.BackColor = &H4000&
- Form1.tmrColor.Interval = 10
- Form1.tmrColor.Enabled = True
- Form1.tmrChange.Interval = 2500
- Form1.tmrChange.Enabled = True
- Form1.pb1.BackColor = RGB(0, 0, 0)
- Exit Sub
- ElseIf paramS(1) = "off" Then
- Form1.Queue.AddItem "Stoner Mode has been disabled."
- StonerMode = False
- WriteStuff "Settings", "StonerMode", "0"
- Form1.tmrColor.Enabled = False
- Form1.tmrChange.Enabled = False
- Form1.BackColor = &H4000&
- Form1.tabS.BackColor = &H4000&
- Form1.pb1.BackColor = RGB(0, 0, 0)
- Exit Sub
- End If
- End If
- Exit Sub
- End If
- Exit Sub
- Case "inchannel", "channel":
- If InStr(strFlags, "R") > 0 Or InStr(strFlags, "A") > 0 Or InStr(strFlags, "M") > 0 Then
- If UBound(paramS) >= 1 Then
- If paramS(1) = "?" Then
- Form1.Queue.AddItem "To use this command, type: " & strTrigger & paramS(0) & " <channel>"
- Exit Sub
- Else
- ChannelLookup = True
- Form1.Queue.AddItem "/who " & strRest
- Exit Sub
- End If
- End If
- End If
- Exit Sub
- Case "oracle", "ask", "askoracle":
- If InStr(strFlags, "N") > 0 Then
- If UBound(paramS) < 1 Then Exit Sub
- If paramS(1) = "?" Then
- Form1.Queue.AddItem "To use this command, type: " & strTrigger & paramS(0) & " <Yes or No question>"
- Exit Sub
- End If
- If UBound(paramS) > 2 Then
- Form1.Queue.AddItem AskOracle(strUser)
- Exit Sub
- Else
- Form1.Queue.AddItem "Please ask a yes or no question."
- Exit Sub
- End If
- End If
- Exit Sub
- Case "inbox":
- If InStr(strFlags, "N") > 0 Then
- If UBound(paramS) >= 1 Then
- If paramS(1) = "?" Then
- Form1.Queue.AddItem "To check your mail, simply type: " & strTrigger & "inbox"
- Exit Sub
- End If
- End If
- Dim iMail As Integer, H As Long
- For H = 0 To UBound(maillist)
- If LCase(maillist(H).To) = LCase(strUser) Then
- iMail = iMail + 1
- Form1.Queue.AddItem "/w " & strUser & " Message " & iMail & ": " & "From: " & maillist(H).From & " Date: " & maillist(H).Date & " Time: " & maillist(H).Time & " Message: " & maillist(H).Msg
- End If
- Next H
- For H = 0 To iMail
- RemoveMail strUser
- Next H
- RemoveMail strUser
- SaveMail
- Exit Sub
- End If
- Exit Sub
- Case "mail":
- 'If InStr(strFlags, "N") > 0 Then
- If paramS(1) = "?" Then
- Form1.Queue.AddItem "To add a new mail message for someone, type: " & strTrigger & "mail <Name> <Message>"
- Exit Sub
- End If
- If UBound(paramS) >= 2 Then
- Dim paramAfter1() As String, cnt As Integer, bmMsg As String
- paramAfter1() = Split(strRest, " ")
- For cnt = 1 To UBound(paramAfter1())
- bmMsg = bmMsg & paramAfter1(cnt) & " "
- Next cnt
- Dim tmpM As ml
- tmpM.To = paramS(1)
- tmpM.From = strUser
- tmpM.Time = Time()
- tmpM.Date = Date
- tmpM.Msg = bmMsg
- AddMail tmpM
- SaveMail
- Form1.Queue.AddItem "New mail added for: " & paramS(1)
- Exit Sub
- End If
- 'End If
- Exit Sub
- Case "mailchannel", "mailchan", "channelmail", "chanmail":
- If InStr(strFlags, "M") > 0 Then
- If paramS(1) = "?" Then
- Form1.Queue.AddItem "To mail everyone in the channel, type: " & strTrigger & paramS(0) & " <Message>"
- Exit Sub
- End If
- Dim cnt2 As Integer, tmpMC As ml
- For cnt2 = 1 To Form1.RoomList.ListItems.Count
- tmpMC.To = Form1.RoomList.ListItems.Item(cnt2).text
- tmpMC.From = strUser
- tmpMC.Time = Time()
- tmpMC.Date = Date
- tmpMC.Msg = strRest
- AddMail tmpMC
- SaveMail
- Next cnt2
- Form1.Queue.AddItem Form1.RoomList.ListItems.Count & " mail messages queued for delivery."
- Exit Sub
- End If
- Exit Sub
- Case "savedb":
- If InStr(strFlags, "O") > 0 Or InStr(strFlags, "A") > 0 Or InStr(strFlags, "M") > 0 Then
- If UBound(paramS) > 0 Then
- If paramS(1) = "?" Then
- Form1.Queue.AddItem "To use this command, simply type: " & strTrigger & paramS(0)
- Exit Sub
- End If
- Else
- Form1.DB.DBWritten = False
- Form1.DB.CloseDatabase
- Form1.Queue.AddItem "Database Saved."
- Exit Sub
- End If
- End If
- Exit Sub
- Case "reloaddb":
- If InStr(strFlags, "O") > 0 Or InStr(strFlags, "A") > 0 Or InStr(strFlags, "M") > 0 Then
- If UBound(paramS) > 0 Then
- If paramS(1) = "?" Then
- Form1.Queue.AddItem "To use this command, simply type: " & strTrigger & paramS(0)
- Exit Sub
- End If
- Else
- Form1.DB.DBWritten = False
- Form1.DB.CloseDatabase
- Form1.UserDB.OpenFile
- Form1.DB.CreateDatabase Form1.UserDB.ReadFile
- Form1.Queue.AddItem "Database Entries Reloaded."
- Exit Sub
- End If
- End If
- Exit Sub
- Case "settrigger", "trigger":
- If InStr(strFlags, "O") > 0 Or InStr(strFlags, "A") > 0 Or InStr(strFlags, "M") > 0 Then
- If UBound(paramS) > 0 Then
- If paramS(1) = "?" Then
- Form1.Queue.AddItem "To set a new trigger, type: " & strTrigger & paramS(0) & " <NewSingleCharacterTrigger>"
- Exit Sub
- End If
- If paramS(1) = "" Then Exit Sub
- If Len(paramS(1)) = 1 Then
- strTrigger = paramS(1)
- WriteStuff "Settings", "Trigger", strTrigger
- Form1.Queue.AddItem "Trigger changed to: " & strTrigger
- Exit Sub
- End If
- Else
- Form1.DB.CloseDatabase
- Form1.Queue.AddItem "Please specify a new single character trigger, such as: !"
- Exit Sub
- End If
- End If
- Exit Sub
- Case "say", "talk":
- If InStr(strFlags, "T") > 0 Then
- If UBound(paramS) > 0 Then
- Form1.Queue.AddItem strRest
- Exit Sub
- End If
- End If
- Exit Sub
- Case "kick", "ban", "ignore", "designate", "unban":
- If InStr(strFlags, "O") > 0 Or InStr(strFlags, "A") > 0 Or InStr(strFlags, "M") > 0 Then
- If UBound(paramS) > 0 Then
- Dim spltrst() As String
- If paramS(0) = "kick" Then
- spltrst() = Split(strRest, " ")
- If InStr(Form1.DB.GetFlags(spltrst(0)), "S") > 0 Then
- Form1.Queue.AddItem spltrst(0) & " is safelisted."
- Exit Sub
- Else
- Form1.Queue.AddItem "/kick " & strRest
- Exit Sub
- End If
- ElseIf paramS(0) = "ban" Then
- spltrst() = Split(strRest, " ")
- If InStr(Form1.DB.GetFlags(spltrst(0)), "S") > 0 Then
- Form1.Queue.AddItem spltrst(0) & " is safelisted."
- Exit Sub
- Else
- Form1.Queue.AddItem "/ban " & strRest
- Exit Sub
- End If
- ElseIf paramS(0) = "ignore" Then
- Form1.Queue.AddItem "/ignore " & strRest
- Exit Sub
- ElseIf paramS(0) = "designate" Then
- Form1.Queue.AddItem "/designate " & strRest
- Exit Sub
- ElseIf paramS(0) = "unban" Then
- Form1.Queue.AddItem "/unban " & strRest
- Exit Sub
- End If
- If paramS(1) = "?" Then
- Form1.Queue.AddItem "To use this command, type: " & strTrigger & paramS(0) & " <Name>"
- Exit Sub
- End If
- End If
- End If
- Exit Sub
- Case "set":
- Exit Sub
- Case "whois", "lookup", "access", "find":
- If InStr(strFlags, "R") > 0 Or InStr(strFlags, "A") > 0 Then
- If UBound(paramS) < 1 Then Exit Sub
- If UBound(paramS) = 1 Then
- If paramS(1) = "?" Then
- Form1.Queue.AddItem "To see a users access flags, type: " & strTrigger & paramS(0) & " <Name>"
- Exit Sub
- End If
- If InStr(1, paramS(1), "*") Then
- Form1.Queue.AddItem "Matches Found: " & Form1.DB.WCFind(Replace(paramS(1), "*", ""))
- Exit Sub
- End If
- Dim tmpU As Long
- tmpU = Form1.DB.FindUser(paramS(1))
- If tmpU = -1 Then
- Form1.Queue.AddItem "User " & paramS(1) & " has no access whatsoever."
- Exit Sub
- Else
- Form1.Queue.AddItem "User " & paramS(1) & "'s access flags are: " & Form1.DB.GetFlags(paramS(1))
- Exit Sub
- End If
- End If
- End If
- Exit Sub
- Case "adduser", "add", "setuser", "set":
- Dim NewFlags As String
- If InStr(strFlags, "O") > 0 Or InStr(strFlags, "A") > 0 Then
- If UBound(paramS) < 1 Then Exit Sub
- If UBound(paramS) = 1 Or UBound(paramS) = 2 Then
- If paramS(1) = "?" Then
- Form1.Queue.AddItem "To set or change a user's flags, use + or - as a prefix. Examples: " & strTrigger & paramS(0) & " <Name> +ADMNORST, " & strTrigger & paramS(0) & " <Name> -ADO"
- Exit Sub
- End If
- If UBound(paramS) = 1 Then
- On Error GoTo omfg
- If Form1.DB.FindUser(paramS(1)) = -1 Then
- Form1.DB.AddUser paramS(1), GetPing(paramS(1)), Form1.RoomList.FindItem(paramS(1)).ListSubItems(1).key
- Form1.Queue.AddItem paramS(1) & " was added to the database with flags: N"
- Exit Sub
- Else
- Form1.Queue.AddItem "User already exists. For help using this command type: " & strTrigger & paramS(0) & " ?"
- Exit Sub
- End If
- End If
- If Left(paramS(2), 1) = "+" Then
- Form1.DB.UpdateStat paramS(1), "Flags", UCase(Form1.DB.GetFlags(paramS(1)) & Right(paramS(2), Len(paramS(2)) - 1))
- Form1.Queue.AddItem paramS(1) & "'s new flags: " & Form1.DB.GetFlags(paramS(1))
- Exit Sub
- ElseIf Left(paramS(2), 1) = "-" Then
- Dim n As Integer
- For n = 1 To Len(paramS(2)) - 1
- 'Debug.Print "Replacing -> " & Mid(TempArray(1), n + 1, 1) & " in " & frmMain.DB.GetInfo(TempArray(0), 1)
- NewFlags = Replace(Form1.DB.GetFlags(paramS(1)), UCase(Mid(paramS(2), n + 1, 1)), "")
- 'Debug.Print "NewFlags -> " & NewFlags
- Form1.DB.UpdateStat paramS(1), "Flags", UCase(NewFlags)
- Next n
- Form1.Queue.AddItem paramS(1) & "'s new flags: " & Form1.DB.GetFlags(paramS(1))
- Exit Sub
- Else
- DB.UpdateStat paramS(1), "Flags", UCase(paramS(2))
- Form1.Queue.AddItem paramS(1) & "'s new flags: " & Form1.DB.GetFlags(paramS(1))
- Exit Sub
- End If
- omfg:
- Form1.Queue.AddItem "[!NEWB ERROR!] - You cannot add somebody who is not in the channel."
- End If
- Exit Sub
- End If
- Case Else:
- Exit Sub
- End Select
- End If
- Exit Sub
- EndingOfSUB:
- If StonerMode = True Then
- 'MsgBox err.Description
- Form1.Queue.AddItem "[!NEWB ERROR!] - " & strUser & " messed up a SIMPLE command. (it's okay.. don't cry newb! weed makes it better!)"
- Else
- Form1.Queue.AddItem "[!NEWB ERROR!] - " & strUser & " messed up a SIMPLE command."
- End If
- End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement